changeset 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 0b5fdabaada5
children 7842e977d3df
files src/dmlib.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dmlib.h	Thu Mar 05 02:33:39 2015 +0200
+++ b/src/dmlib.h	Thu Mar 05 02:34:50 2015 +0200
@@ -22,6 +22,13 @@
 #endif
 
 
+// Check for arch bitness
+#if defined(__WIN64) || defined(_WIN64) || defined(_WIN32) || defined(__WIN32)
+#  define DM_WINDOWS 1
+#  if defined(__MINGW32__) || defined(__MINGW64__)
+#     define __USE_MINGW_ANSI_STDIO 1
+#  endif
+#endif
 #ifdef __cplusplus
 extern "C" {
 #endif