diff options
Diffstat (limited to 'src/include/w32functions.h')
-rw-r--r-- | src/include/w32functions.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/include/w32functions.h b/src/include/w32functions.h deleted file mode 100644 index 0694a381..00000000 --- a/src/include/w32functions.h +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of libmicrohttpd | ||
3 | Copyright (C) 2014 Karlson2k (Evgeny Grin) | ||
4 | |||
5 | This library is free software; you can redistribute it and/or | ||
6 | modify it under the terms of the GNU Lesser General Public | ||
7 | License as published by the Free Software Foundation; either | ||
8 | version 2.1 of the License, or (at your option) any later version. | ||
9 | |||
10 | This library is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Lesser General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Lesser General Public | ||
16 | License along with this library. | ||
17 | If not, see <http://www.gnu.org/licenses/>. | ||
18 | */ | ||
19 | |||
20 | /** | ||
21 | * @file include/w32functions.h | ||
22 | * @brief internal functions for W32 systems | ||
23 | * @author Karlson2k (Evgeny Grin) | ||
24 | */ | ||
25 | |||
26 | #ifndef MHD_W32FUNCTIONS_H | ||
27 | #define MHD_W32FUNCTIONS_H | ||
28 | #ifndef _WIN32 | ||
29 | #error w32functions.h is designed only for W32 systems | ||
30 | #endif | ||
31 | |||
32 | #include "platform.h" | ||
33 | #include <errno.h> | ||
34 | #include <winsock2.h> | ||
35 | #include "platform_interface.h" | ||
36 | |||
37 | #ifdef __cplusplus | ||
38 | extern "C" | ||
39 | { | ||
40 | #endif | ||
41 | |||
42 | /** | ||
43 | * Generate 31-bit pseudo random number. | ||
44 | * Function initialize itself at first call to current time. | ||
45 | * @return 31-bit pseudo random number. | ||
46 | */ | ||
47 | int MHD_W32_random_(void); | ||
48 | |||
49 | /* Emulate snprintf function on W32 */ | ||
50 | int W32_snprintf(char *__restrict s, size_t n, const char *__restrict format, ...); | ||
51 | |||
52 | #ifdef __cplusplus | ||
53 | } | ||
54 | #endif | ||
55 | #endif /* MHD_W32FUNCTIONS_H */ | ||