diff options
author | Cameron Cawley | 2019-03-31 19:07:40 +0100 |
---|---|---|
committer | Filippos Karapetis | 2019-04-15 08:06:39 +0300 |
commit | bcef809e612177c2bcb7ca3f8682ea96d38c4cdc (patch) | |
tree | 14bc067ff02ef2e1aabd19360db67e22deb8704f /backends/platform/wince/wince-sdl.cpp | |
parent | 82f4ee86a9824a9cdfd5060d7bab23be381a46df (diff) | |
download | scummvm-rg350-bcef809e612177c2bcb7ca3f8682ea96d38c4cdc.tar.gz scummvm-rg350-bcef809e612177c2bcb7ca3f8682ea96d38c4cdc.tar.bz2 scummvm-rg350-bcef809e612177c2bcb7ca3f8682ea96d38c4cdc.zip |
WINCE: Fix compilation
Diffstat (limited to 'backends/platform/wince/wince-sdl.cpp')
-rw-r--r-- | backends/platform/wince/wince-sdl.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/backends/platform/wince/wince-sdl.cpp b/backends/platform/wince/wince-sdl.cpp index 8a19eac064..cb26071c97 100644 --- a/backends/platform/wince/wince-sdl.cpp +++ b/backends/platform/wince/wince-sdl.cpp @@ -24,6 +24,9 @@ // Disable symbol overrides so that we can use system headers. #define FORBIDDEN_SYMBOL_ALLOW_ALL +#include <windows.h> + +#include "backends/platform/wince/missing/fopen.h" #include "backends/platform/wince/wince-sdl.h" #include "common/config-manager.h" @@ -163,7 +166,6 @@ int handleException(EXCEPTION_POINTERS *exceptionPointers) { } #endif -extern "C" char *getcwd(char *buf, int size); int SDL_main(int argc, char **argv) { FILE *newfp = NULL; #ifdef __GNUC__ @@ -182,8 +184,8 @@ int SDL_main(int argc, char **argv) { CEDevice::init(); /* Redirect standard input and standard output */ - strcpy(stdout_fname, getcwd(NULL, MAX_PATH)); - strcpy(stderr_fname, getcwd(NULL, MAX_PATH)); + strcpy(stdout_fname, wce_getcwd(NULL, MAX_PATH)); + strcpy(stderr_fname, wce_getcwd(NULL, MAX_PATH)); strcat(stdout_fname, STDOUT_FNAME); strcat(stderr_fname, STDERR_FNAME); #ifndef __GNUC__ @@ -279,7 +281,7 @@ int console_main(int argc, char *argv[]) { appname = bufp; if (SDL_Init(SDL_INIT_NOPARACHUTE) < 0) { - error("WinMain() error: %d", SDL_GetError()); + error("WinMain() error: %s", SDL_GetError()); return(FALSE); } @@ -461,7 +463,7 @@ bool OSystem_WINCE3::isOzone() { Common::String OSystem_WINCE3::getDefaultConfigFileName() { char configFile[MAXPATHLEN]; - strcpy(configFile, getcwd(NULL, MAX_PATH)); + strcpy(configFile, wce_getcwd(NULL, MAX_PATH)); strcat(configFile, "\\"); strcat(configFile, DEFAULT_CONFIG_FILE); return configFile; |