* Make Sprite::glEnter2DMode() use this->g instead of some undefined global gr variable.
[matthijs/ABM2.git] / ABM2 / porting.h
1 #if !defined(AFX_PORTING_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_)
2 #define AFX_PORTING_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_
3
4 #ifndef WIN32
5         #define vsprintf_s vsnprintf
6         #define sprintf_s snprintf
7         #define strcpy_s(dst, size, src) strncpy(dst, src, size)
8         #define ZeroMemory(buf, size) memset(buf, 0, size)
9
10         #define BYTE unsigned char
11         #define DWORD unsigned int
12 #endif // !WIN32
13
14 #ifdef WITH_SDL
15         #include <SDL/SDL.h>
16         #define GetTickCount SDL_GetTicks
17 #endif // WITH_SDL
18
19 #endif // !defined(AFX_PORTING_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_)