Added SILC_UNIX define for unix systems.
[silc.git] / includes / silcincludes.h
index ebdea361e518c19f7ca92cc220efbf88c60b6410..cf63d7bab2b3234bad283d2b995972cb7955b9f1 100644 (file)
 #ifndef SILCINCLUDES_H
 #define SILCINCLUDES_H
 
-/* Automatically generated configuration header */
-#include "silcdefs.h"
-
 #ifdef __cplusplus
 extern "C" {
 #endif
 
+#define SILC_UNIX
+
 #ifdef WIN32
 #ifndef SILC_WIN32
 #define SILC_WIN32
+#undef SILC_UNIX
 #endif
 #endif
 
 #if defined(__EPOC32__)
 #ifndef SILC_EPOC
 #define SILC_EPOC
+#undef SILC_UNIX
 #endif
 #endif
 
 #ifdef BEOS
 #ifndef SILC_BEOS
 #define SILC_BEOS
+#undef SILC_UNIX
 #endif
 #elif defined(__BEOS__)
 #ifndef SILC_BEOS
 #define SILC_BEOS
+#undef SILC_UNIX
 #endif
 #endif
 
 #if defined(OS2)
 #ifndef SILC_OS2
 #define SILC_OS2
+#undef SILC_UNIX
 #endif
 #endif
 
+/* Automatically generated configuration header */
+#include "silcdefs.h"
+
 /* Platform specific includes */
 
 #ifdef SILC_WIN32