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.h20
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>