Jörg Hohensohn | 6a4e4c8 | 2003-11-30 11:37:43 +0000 | [diff] [blame] | 1 | // this is meant to resolve platform dependency |
| 2 | |
| 3 | #ifndef _SCALAR_TYPES_H |
| 4 | #define _SCALAR_TYPES_H |
| 5 | |
| 6 | |
| 7 | #ifdef WIN32 |
| 8 | #include <windows.h> |
| 9 | #define SLEEP Sleep |
| 10 | #define GET_LAST_ERR GetLastError |
| 11 | #endif |
| 12 | // ToDo: add stuff for Linux |
| 13 | |
| 14 | |
| 15 | |
| 16 | #ifndef UINT8 |
| 17 | #define UINT8 unsigned char |
| 18 | #endif |
| 19 | |
| 20 | #ifndef UINT16 |
| 21 | #define UINT16 unsigned short |
| 22 | #endif |
| 23 | |
| 24 | #ifndef UINT32 |
| 25 | #define UINT32 unsigned long |
| 26 | #endif |
| 27 | |
| 28 | #ifndef bool |
| 29 | #define bool int |
| 30 | #endif |
| 31 | |
| 32 | #ifndef true |
| 33 | #define true 1 |
| 34 | #endif |
| 35 | |
| 36 | #ifndef false |
| 37 | #define false 0 |
| 38 | #endif |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
Jens Arnold | c519e63 | 2004-11-19 22:44:45 +0000 | [diff] [blame] | 44 | #endif |
| 45 | |