mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-23 06:57:31 +08:00
19 lines
324 B
C++
19 lines
324 B
C++
#if defined(_COMPATIBILITY_1)
|
|
#include "Compatibility1Includes.h"
|
|
#elif defined(_WIN32)
|
|
#include <windows.h> // Sleep
|
|
#elif defined(_COMPATIBILITY_2)
|
|
#include "Compatibility2Includes.h"
|
|
#else
|
|
#include <unistd.h> // usleep
|
|
#endif
|
|
|
|
void RakSleep(unsigned int ms)
|
|
{
|
|
#ifdef _WIN32
|
|
Sleep(ms);
|
|
#else
|
|
usleep(ms * 1000);
|
|
#endif
|
|
}
|