#if defined(_COMPATIBILITY_1) #include "Compatibility1Includes.h" #elif defined(_WIN32) #include // Sleep #elif defined(_COMPATIBILITY_2) #include "Compatibility2Includes.h" #else #include // usleep #endif void RakSleep(unsigned int ms) { #ifdef _WIN32 Sleep(ms); #else usleep(ms * 1000); #endif }