comparison src/dmlib.h @ 1143:e7c3de96b6fd

Check if we are compiling for Windows and if we are compiling under MINGW.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 05 Mar 2015 02:34:50 +0200
parents f8e9f6b2a41a
children af2c9f76c782
comparison
equal deleted inserted replaced
1142:0b5fdabaada5 1143:e7c3de96b6fd
20 #else 20 #else
21 # define assert(NEXPR) // stub 21 # define assert(NEXPR) // stub
22 #endif 22 #endif
23 23
24 24
25 // Check for arch bitness
26 #if defined(__WIN64) || defined(_WIN64) || defined(_WIN32) || defined(__WIN32)
27 # define DM_WINDOWS 1
28 # if defined(__MINGW32__) || defined(__MINGW64__)
29 # define __USE_MINGW_ANSI_STDIO 1
30 # endif
31 #endif
25 #ifdef __cplusplus 32 #ifdef __cplusplus
26 extern "C" { 33 extern "C" {
27 #endif 34 #endif
28 35
29 // Defaults 36 // Defaults