diff options
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r-- | src/include/microhttpd.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 5edf8f98..e97e1abd 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -141,6 +141,22 @@ extern "C" | |||
141 | #define MHD_CONTENT_READER_END_WITH_ERROR (((size_t) -1LL) - 1) | 141 | #define MHD_CONTENT_READER_END_WITH_ERROR (((size_t) -1LL) - 1) |
142 | #endif | 142 | #endif |
143 | 143 | ||
144 | /** | ||
145 | * Not all architectures and printf's support the long long type. | ||
146 | * This gives the ability to replace long long with just a long, | ||
147 | * standard int or a short. | ||
148 | */ | ||
149 | #ifndef MHD_LONG_LONG | ||
150 | #define MHD_LONG_LONG long long | ||
151 | #endif | ||
152 | #ifndef MHD_LONG_LONG_PRINTF | ||
153 | /** | ||
154 | * Format string for printing a variable of type 'MHD_LONG_LONG'. | ||
155 | * You should only redefine this if you also define MHD_LONG_LONG. | ||
156 | */ | ||
157 | #define MHD_LONG_LONG_PRINTF "ll" | ||
158 | #endif | ||
159 | |||
144 | 160 | ||
145 | /** | 161 | /** |
146 | * HTTP response codes. | 162 | * HTTP response codes. |
@@ -1035,7 +1051,8 @@ MHD_get_fdset (struct MHD_Daemon *daemon, | |||
1035 | * not used (or no connections exist that would | 1051 | * not used (or no connections exist that would |
1036 | * necessiate the use of a timeout right now). | 1052 | * necessiate the use of a timeout right now). |
1037 | */ | 1053 | */ |
1038 | int MHD_get_timeout (struct MHD_Daemon *daemon, unsigned long long *timeout); | 1054 | int MHD_get_timeout (struct MHD_Daemon *daemon, |
1055 | unsigned MHD_LONG_LONG *timeout); | ||
1039 | 1056 | ||
1040 | 1057 | ||
1041 | /** | 1058 | /** |