libidav/utils.h

changeset 267
171498cb2137
parent 254
d7c4ba50b7d8
child 372
2e15ff88a0ab
equal deleted inserted replaced
266:8c44c5919691 267:171498cb2137
27 */ 27 */
28 28
29 #ifndef UTILS_H 29 #ifndef UTILS_H
30 #define UTILS_H 30 #define UTILS_H
31 31
32 #ifdef _WIN32
33 #include <winsock2.h>
34 #include <io.h>
35 #endif /* _WIN32 */
36
32 #include <sys/types.h> 37 #include <sys/types.h>
33 #include <libxml/tree.h> 38 #include <libxml/tree.h>
34 #include <ucx/string.h> 39 #include <ucx/string.h>
35 #include <sys/stat.h> 40 #include <sys/stat.h>
36 #include <inttypes.h> 41 #include <inttypes.h>
42
37 #include <curl/curl.h> 43 #include <curl/curl.h>
38 #include "webdav.h" 44 #include "webdav.h"
39 45
40 #ifdef _WIN32 46 #ifndef S_IRWXG
41 #include <io.h> 47 /* if one is not defined, the others are probably also not defined */
42 #define S_IRWXG 070 48 #define S_IRWXG 070
43 #define S_IRGRP 040 49 #define S_IRGRP 040
44 #define S_IWGRP 020 50 #define S_IWGRP 020
45 #define S_IXGRP 010 51 #define S_IXGRP 010
46 #define S_IRWXO 07 52 #define S_IRWXO 07
47 #define S_IROTH 04 53 #define S_IROTH 04
48 #define S_IWOTH 02 54 #define S_IWOTH 02
49 #define S_IXOTH 01 55 #define S_IXOTH 01
50 #endif /* _WIN32 */ 56 #endif /* S_IRWXG */
51 57
52 #ifdef __cplusplus 58 #ifdef __cplusplus
53 extern "C" { 59 extern "C" {
54 #endif 60 #endif
55 61

mercurial