Roger Meier | 122803b | 2012-06-18 20:23:58 +0000 | [diff] [blame] | 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 | |||||
10 | inline int Sleep(int ms) | ||||
11 | { | ||||
12 | return sleep(ms/1000); //sleep() param is in seconds | ||||
13 | } | ||||
14 | |||||
15 | inline int _tcscmp(const char* str1, const char* str2) | ||||
16 | { | ||||
17 | return strcmp(str1, str2); | ||||
18 | } | ||||
19 | |||||
20 | inline int _tstoi(const char* str) | ||||
21 | { | ||||
22 | return atoi(str); | ||||
23 | } | ||||
24 |