diff options
Diffstat (limited to 'src/common/utils.h')
-rw-r--r-- | src/common/utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/utils.h b/src/common/utils.h index 0ac818468..e2b0dacc9 100644 --- a/src/common/utils.h +++ b/src/common/utils.h @@ -51,6 +51,12 @@ size_t hread(void * ptr, size_t size, size_t count, FILE * stream); size_t hwrite(const void * ptr, size_t size, size_t count, FILE * stream); #endif // HERCULES_CORE +#ifdef WIN32 +#define HSleep(x) Sleep(1000 * (x)) +#else // ! WIN32 +#define HSleep(x) sleep(x) +#endif + /* [Ind/Hercules] Caching */ struct HCache_interface { void (*init) (void); |