diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/include/microhttpd.h | 10 |
2 files changed, 15 insertions, 3 deletions
@@ -1,3 +1,11 @@ | |||
1 | Sun Jun 09 2019 20:03:16 MSK | ||
2 | Updated HTTP headers, methods and status codes from registries, | ||
3 | Added scripts to import new headers, methods and status codes from | ||
4 | registries, | ||
5 | Minor doxyget comment fix, | ||
6 | Added missing MSVS project files to tarball. | ||
7 | Reodered includes in microhttpd.h -EG | ||
8 | |||
1 | Mon 03 Jun 2019 11:45:52 PM CEST | 9 | Mon 03 Jun 2019 11:45:52 PM CEST |
2 | Apply MHD_-prefix to hash functions, even if they are not in the | 10 | Apply MHD_-prefix to hash functions, even if they are not in the |
3 | officially exported API. -CG/DB | 11 | officially exported API. -CG/DB |
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 577ebc59..95087887 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -101,6 +101,13 @@ extern "C" | |||
101 | on platforms where they do not exist). | 101 | on platforms where they do not exist). |
102 | */ | 102 | */ |
103 | #ifndef MHD_PLATFORM_H | 103 | #ifndef MHD_PLATFORM_H |
104 | #if defined(_WIN32) && ! defined(__CYGWIN__) && \ | ||
105 | ! defined(_CRT_DECLARE_NONSTDC_NAMES) | ||
106 | #define _CRT_DECLARE_NONSTDC_NAMES 1 | ||
107 | #endif /* _WIN32 && ! __CYGWIN__ && ! _CRT_DECLARE_NONSTDC_NAMES */ | ||
108 | #include <stdarg.h> | ||
109 | #include <stdint.h> | ||
110 | #include <sys/types.h> | ||
104 | #if !defined(_WIN32) || defined(__CYGWIN__) | 111 | #if !defined(_WIN32) || defined(__CYGWIN__) |
105 | #include <unistd.h> | 112 | #include <unistd.h> |
106 | #include <sys/time.h> | 113 | #include <sys/time.h> |
@@ -114,9 +121,6 @@ extern "C" | |||
114 | typedef intptr_t ssize_t; | 121 | typedef intptr_t ssize_t; |
115 | #endif /* !_SSIZE_T_DEFINED */ | 122 | #endif /* !_SSIZE_T_DEFINED */ |
116 | #endif /* _WIN32 && ! __CYGWIN__ */ | 123 | #endif /* _WIN32 && ! __CYGWIN__ */ |
117 | #include <stdarg.h> | ||
118 | #include <stdint.h> | ||
119 | #include <sys/types.h> | ||
120 | #endif | 124 | #endif |
121 | 125 | ||
122 | #if defined(__CYGWIN__) && !defined(_SYS_TYPES_FD_SET) | 126 | #if defined(__CYGWIN__) && !defined(_SYS_TYPES_FD_SET) |