changeset 183:8baec5a454c1

Define TH_PLAT_{WINDOWS,UNIX} depending on the platform we are on.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 20 Jan 2016 16:25:23 +0200
parents d560371c85c0
children b256db93cf25
files th_util.h
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/th_util.h	Tue Mar 31 11:26:26 2015 +0300
+++ b/th_util.h	Wed Jan 20 16:25:23 2016 +0200
@@ -12,6 +12,12 @@
 #include "config.h"
 #endif
 
+#if defined(__WIN64) || defined(_WIN64) || defined(__WIN32) || defined(_WIN32)
+#  define TH_PLAT_WINDOWS 1
+#else
+#  define TH_PLAT_UNIX 1
+#endif
+
 #include "th_types.h"
 #include <stdio.h>
 #include <stdarg.h>