Rev 9 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 9 | Rev 11 | ||
|---|---|---|---|
| Line 19... | Line 19... | ||
| 19 | typedef uint16_t U16; |
19 | typedef uint16_t U16; |
| 20 | typedef uint32_t U32; |
20 | typedef uint32_t U32; |
| 21 | typedef int8_t S8; |
21 | typedef int8_t S8; |
| 22 | typedef int16_t S16; |
22 | typedef int16_t S16; |
| 23 | typedef int32_t S32; |
23 | typedef int32_t S32; |
| 24 | #ifdef |
24 | #ifdef _WIN32 |
| 25 | #include <stdio.h> // for sprintf_s() and the likes |
25 | #include <stdio.h> // for sprintf_s() and the likes |
| 26 | #else // |
26 | #else // !_WIN32 |
| 27 | #define strcpy_s(dest,size,source) strcpy (dest, source) |
27 | #define strcpy_s(dest,size,source) strcpy (dest, source) |
| 28 | #define strcat_s(dest,size,source) strcat (dest, source) |
28 | #define strcat_s(dest,size,source) strcat (dest, source) |
| 29 | #define sprintf_s(dest,size,format,...) sprintf (dest, format, __VA_ARGS__) |
29 | #define sprintf_s(dest,size,format,...) sprintf (dest, format, __VA_ARGS__) |
| 30 | #define strncpy_s(dest,size,source,count) strncpy (dest, source, count) |
30 | #define strncpy_s(dest,size,source,count) strncpy (dest, source, count) |
| 31 | #define vsprintf_s(buffer,maxsize,format,...) vsprintf(buffer,format, ##__VA_ARGS__) |
31 | #define vsprintf_s(buffer,maxsize,format,...) vsprintf(buffer,format, ##__VA_ARGS__) |
| 32 | #define fopen_s(fp,filename,mode) *(fp) = fopen (filename, mode) |
32 | #define fopen_s(fp,filename,mode) *(fp) = fopen (filename, mode) |
| 33 | #endif // |
33 | #endif // _WIN32 |
| 34 | 34 | ||
| 35 | /* this must be after typedefs because it relies on types defined above */ |
35 | /* this must be after typedefs because it relies on types defined above */ |
| 36 | #include "rects.h" |
36 | #include "rects.h" |
| 37 | #include "img.h" |
37 | #include "img.h" |
| 38 | 38 | ||