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