diff options
author | ng0 <ng0@n0.is> | 2019-09-06 22:46:29 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-09-06 22:46:29 +0000 |
commit | 6e599264ad13e8fc105493d74d7c11d46f8739ed (patch) | |
tree | 169bef1ecbade5a659831fb169f3ae6943af127f /src/include/platform.h | |
parent | 4f13bc15113021ebf71d5d81e99bc29f8a07fc9c (diff) | |
download | gnunet-6e599264ad13e8fc105493d74d7c11d46f8739ed.tar.gz gnunet-6e599264ad13e8fc105493d74d7c11d46f8739ed.zip |
first step to remove plibc
Diffstat (limited to 'src/include/platform.h')
-rw-r--r-- | src/include/platform.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/include/platform.h b/src/include/platform.h index 0e3144ee8..6a3e8e4b8 100644 --- a/src/include/platform.h +++ b/src/include/platform.h | |||
@@ -196,7 +196,25 @@ | |||
196 | #include <sys/endian.h> | 196 | #include <sys/endian.h> |
197 | #endif | 197 | #endif |
198 | 198 | ||
199 | #include "plibc.h" | 199 | /* From plibc. */ |
200 | #ifdef Q_OS_WIN32 | ||
201 | #define WINDOWS 1 | ||
202 | #endif | ||
203 | |||
204 | #ifndef WINDOWS | ||
205 | #define DIR_SEPARATOR '/' | ||
206 | #define DIR_SEPARATOR_STR "/" | ||
207 | #define PATH_SEPARATOR ':' | ||
208 | #define PATH_SEPARATOR_STR ":" | ||
209 | #define NEWLINE "\n" | ||
210 | #else | ||
211 | #define DIR_SEPARATOR '\\' | ||
212 | #define DIR_SEPARATOR_STR "\\" | ||
213 | #define PATH_SEPARATOR ';' | ||
214 | #define PATH_SEPARATOR_STR ";" | ||
215 | #define NEWLINE "\r\n" | ||
216 | #endif | ||
217 | |||
200 | #include "compat.h" | 218 | #include "compat.h" |
201 | 219 | ||
202 | #include <locale.h> | 220 | #include <locale.h> |