35 |
|
|
36 |
typedef std::string String; |
typedef std::string String; |
37 |
|
|
38 |
|
#if defined(WIN32) |
39 |
|
#include <windows.h> |
40 |
|
#define usleep(a) Sleep(a/1000) |
41 |
|
#define sleep(a) Sleep(a*1000) |
42 |
|
typedef unsigned int uint; |
43 |
|
// FIXME: define proper functions which do proper alignement under Win32 |
44 |
|
#define alignedMalloc(a,b) malloc(b) |
45 |
|
#define alignedFree(a) free(a) |
46 |
|
#else |
47 |
|
// needed for usleep under POSIX |
48 |
|
#include <stdio.h> |
49 |
|
// for uint |
50 |
|
#include <sys/types.h> |
51 |
|
#endif |
52 |
|
|
53 |
|
|
54 |
#endif // __LS_GLOBAL_H__ |
#endif // __LS_GLOBAL_H__ |