diff options
author | Kostas Nakos | 2006-10-08 18:15:18 +0000 |
---|---|---|
committer | Kostas Nakos | 2006-10-08 18:15:18 +0000 |
commit | 4524b49872b238db92922dbe961a8f1aa8430178 (patch) | |
tree | a4de68a8132e22377687a6b005446d757cbe14ab /backends/platform/wince/portdefs.h | |
parent | 1307f597a69ac913b6045a9dfa8e07221e021cde (diff) | |
download | scummvm-rg350-4524b49872b238db92922dbe961a8f1aa8430178.tar.gz scummvm-rg350-4524b49872b238db92922dbe961a8f1aa8430178.tar.bz2 scummvm-rg350-4524b49872b238db92922dbe961a8f1aa8430178.zip |
Initial commit of the wince-gcc re-port
svn-id: r24212
Diffstat (limited to 'backends/platform/wince/portdefs.h')
-rw-r--r-- | backends/platform/wince/portdefs.h | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/backends/platform/wince/portdefs.h b/backends/platform/wince/portdefs.h index ccd68b13cd..fca78367e4 100644 --- a/backends/platform/wince/portdefs.h +++ b/backends/platform/wince/portdefs.h @@ -43,10 +43,23 @@ char *strpbrk(const char *s, const char *accept); #ifdef _WIN32_WCE -void *bsearch(const void *, const void *, size_t, size_t, int (*x) (const void *, const void *)); -char *getcwd(char *buf, int size); -void GetCurrentDirectory(int len, char *buf); -#define INVALID_FILE_ATTRIBUTES 0xffffffff +#ifndef __GNUC__ + void *bsearch(const void *, const void *, size_t, size_t, int (*x) (const void *, const void *)); + char *getcwd(char *buf, int size); + typedef int ptrdiff_t; + void GetCurrentDirectory(int len, char *buf); + #define INVALID_FILE_ATTRIBUTES 0xffffffff +#else + #include <math.h> + #undef GetCurrentDirectory + extern "C" void GetCurrentDirectory(int len, char *buf); + #define stricmp _stricmp + #define strnicmp _strnicmp + #define snprintf _snprintf + #define strdup _strdup + #define fopen wce_fopen +#endif + #include <windows.h> #include <stdio.h> #include <stdlib.h> @@ -59,13 +72,11 @@ void GetCurrentDirectory(int len, char *buf); #include <assert.h> #include <mmsystem.h> #include <ctype.h> -#include <Winuser.h> #include <direct.h> #include <time.h> void drawError(char*); #define vsnprintf _vsnprintf -typedef int ptrdiff_t; #endif |