aboutsummaryrefslogtreecommitdiff
path: root/src/include/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/platform.h')
-rw-r--r--src/include/platform.h27
1 files changed, 1 insertions, 26 deletions
diff --git a/src/include/platform.h b/src/include/platform.h
index 6bcbc233..befebbbe 100644
--- a/src/include/platform.h
+++ b/src/include/platform.h
@@ -109,32 +109,7 @@
109#include <arpa/inet.h> 109#include <arpa/inet.h>
110#endif 110#endif
111 111
112#ifndef WINDOWS 112#include <plibc.h>
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 */
138 113
139 114
140#endif 115#endif