Mercurial > hg > orthanc
comparison Resources/Patches/mongoose-3.8-patch.diff @ 1112:a119f9ae3640
upgrade to Mongoose 3.8
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 01 Sep 2014 12:20:26 +0200 |
parents | |
children | 8f2bda0719f4 |
comparison
equal
deleted
inserted
replaced
1111:929bf8c2123d | 1112:a119f9ae3640 |
---|---|
1 --- mongoose.c.orig 2014-09-01 11:25:18.223466994 +0200 | |
2 +++ mongoose.c 2014-09-01 11:30:21.807479338 +0200 | |
3 @@ -50,6 +50,14 @@ | |
4 #define PATH_MAX FILENAME_MAX | |
5 #endif // __SYMBIAN32__ | |
6 | |
7 +#if __gnu_hurd__ == 1 | |
8 +/** | |
9 + * There is no limit on the length on a path under GNU Hurd, so we set | |
10 + * it to an arbitrary constant. | |
11 + **/ | |
12 +#define PATH_MAX 4096 | |
13 +#endif | |
14 + | |
15 #ifndef _WIN32_WCE // Some ANSI #includes are not available on Windows CE | |
16 #include <sys/types.h> | |
17 #include <sys/stat.h> | |
18 @@ -108,8 +116,9 @@ | |
19 #define strtoll(x, y, z) _atoi64(x) | |
20 #else | |
21 #define __func__ __FUNCTION__ | |
22 -#define strtoull(x, y, z) _strtoui64(x, y, z) | |
23 -#define strtoll(x, y, z) _strtoi64(x, y, z) | |
24 +#include <stdlib.h> | |
25 +//#define strtoull(x, y, z) _strtoui64(x, y, z) | |
26 +//#define strtoll(x, y, z) _strtoi64(x, y, z) | |
27 #endif // _MSC_VER | |
28 | |
29 #define ERRNO GetLastError() |