VC++ compilation fix

This commit is contained in:
Bertrand Songis
2020-06-08 21:51:51 +02:00
parent 62bcb1dbad
commit e7e8c95c45
+5
View File
@@ -23,11 +23,16 @@
#ifndef __GNUC__
#include <windows.h>
#include <intrin.h>
#define sleep(x) Sleep(x)
#define strcasecmp _stricmp
#define strncasecmp _tcsnicmp
#define chdir _chdir
#define getcwd _getcwd
inline int __builtin_clz(unsigned x)
{
return (int)__lzcnt(x);
}
#else
#include <unistd.h>
#define sleep(x) usleep(1000*x)