1 //Missing definitions for *NIX systems. This sample project 2 //was initially created on Windows. 3 4 #include <unistd.h> 5 #include <stdlib.h> 6 #include <string.h> 7 8 #define TEXT(str) str 9 Sleep(int ms)10inline int Sleep(int ms) 11 { 12 return sleep(ms/1000); //sleep() param is in seconds 13 } 14 _tcscmp(const char * str1,const char * str2)15inline int _tcscmp(const char* str1, const char* str2) 16 { 17 return strcmp(str1, str2); 18 } 19 _tstoi(const char * str)20inline int _tstoi(const char* str) 21 { 22 return atoi(str); 23 } 24 25