* Include windows.h by default on windows, most stuff probably needs it. master
authorMatthijs Kooijman <m.kooijman@student.utwente.nl>
Mon, 11 Jun 2007 21:17:17 +0000 (23:17 +0200)
committerMatthijs Kooijman <m.kooijman@student.utwente.nl>
Mon, 11 Jun 2007 21:17:17 +0000 (23:17 +0200)
ABM2/porting.h

index dfa9a33621b9c164b13a6f1e71f79e41de5cba42..3a514f5c7c1ba614a8bba447f9adb76a6f9f89a3 100644 (file)
@@ -1,7 +1,9 @@
 #if !defined(AFX_PORTING_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_)
 #define AFX_PORTING_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_
 
 #if !defined(AFX_PORTING_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_)
 #define AFX_PORTING_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_
 
-#ifndef WIN32
+#ifdef WIN32
+       #include <windows.h>
+#else
        #define vsprintf_s vsnprintf
        #define sprintf_s snprintf
        #define strcpy_s(dst, size, src) strncpy(dst, src, size)
        #define vsprintf_s vsnprintf
        #define sprintf_s snprintf
        #define strcpy_s(dst, size, src) strncpy(dst, src, size)