adrido 5761f103e1 Add porting.h
In preparation for MSVC compilation support
2016-05-31 21:37:57 +02:00

23 lines
261 B
C

#ifndef _PORTING_H
#define _PORTING_H
#ifdef _WIN32
#include <windows.h>
#define sleepMs(x) Sleep(x)
#else
#include <unistd.h>
#define sleepMs(x) usleep(x*1000)
#endif
#ifdef _MSC_VER
#define strcasecmp(a, b) _stricmp(a, b)
#endif
#endif // _PORTING_H