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