diff options
Diffstat (limited to 'src/include/platform.h')
-rw-r--r-- | src/include/platform.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/src/include/platform.h b/src/include/platform.h index befebbbe..6bcbc233 100644 --- a/src/include/platform.h +++ b/src/include/platform.h | |||
@@ -109,7 +109,32 @@ | |||
109 | #include <arpa/inet.h> | 109 | #include <arpa/inet.h> |
110 | #endif | 110 | #endif |
111 | 111 | ||
112 | #include <plibc.h> | 112 | #ifndef WINDOWS |
113 | |||
114 | #define DIR_SEPARATOR '/' | ||
115 | #define DIR_SEPARATOR_STR "/" | ||
116 | #define PATH_SEPARATOR ':' | ||
117 | #define PATH_SEPARATOR_STR ":" | ||
118 | #define NEWLINE "\n" | ||
119 | |||
120 | #else /* ifndef WINDOWS */ | ||
121 | |||
122 | #include <ws2tcpip.h> | ||
123 | #include <windows.h> | ||
124 | |||
125 | #define DIR_SEPARATOR '\\' | ||
126 | #define DIR_SEPARATOR_STR "\\" | ||
127 | #define PATH_SEPARATOR ';' | ||
128 | #define PATH_SEPARATOR_STR ";" | ||
129 | #define NEWLINE "\r\n" | ||
130 | |||
131 | #define SHUT_WR SD_SEND | ||
132 | #define SHUT_RD SD_RECEIVE | ||
133 | #define SHUT_RDWR SD_BOTH | ||
134 | |||
135 | #define SetErrnoFromWinError(e) _SetErrnoFromWinError(e, __FILE__, __LINE__) | ||
136 | |||
137 | #endif /* ifndef WINDOWS */ | ||
113 | 138 | ||
114 | 139 | ||
115 | #endif | 140 | #endif |