* Increase the maximum FPS again to 20 FPS.
[matthijs/ABM2.git] / ABM2 / porting.h
index ef28a0d897350c8458749cd131dc92ac972916d0..5a2311374afcd7341824bcdac616f82d0c028827 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_
 
-#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 BYTE unsigned char
        #define DWORD unsigned int
+       #define max(a,b) (a>b?a:b)
+       #define min(a,b) (a<b?a:b)
 #endif // !WIN32
 
-#ifdef WITH_SDL
-       #include <SDL/SDL.h>
-       #define GetTickCount SDL_GetTicks
-       #define Sleep SDL_Delay
-#endif // WITH_SDL
+#include <SDL/SDL.h>
+#define GetTickCount SDL_GetTicks
+#define Sleep SDL_Delay
 
 #endif // !defined(AFX_PORTING_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_)