Back to home page

Enduro/X

 
 

    


0001 #ifndef __WINCOMPAT_H__
0002 #define __WINCOMPAT_H__
0003 #ifdef _MSC_VER
0004 #include "stdarg.h"
0005 #include "windows.h"
0006 #include "direct.h"
0007 
0008 #define gmtime_r(x,y) gmtime_s(y,x)
0009 
0010 typedef int pid_t;
0011 
0012 #define snprintf sprintf_s
0013 
0014 #define sleep(x) Sleep(x*1000)
0015 #define mkdir(x,y) _mkdir(x)
0016 #define sched_yield() SleepEx (0,0)
0017 
0018 #define CGREEN_READ_HANDLE "CGREEN_READ_HANDLE"
0019 #define CGREEN_WRITE_HANDLE "CGREEN_WRITE_HANDLE"
0020 #define CGREEN_TEST_TO_RUN "CGREEN_TEST_TO_RUN"
0021 
0022 #ifdef __cplusplus
0023 #define PRIdPTR     "Id"
0024 #endif
0025 
0026 #endif //_MSC_VER
0027 #endif //__WINCOMPAT_H__
0028