diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c index b367eb14a1..5213795a7e 100644 --- a/uisimulator/common/io.c +++ b/uisimulator/common/io.c @@ -27,7 +27,7 @@ #include #include "config.h" -#define HAVE_STATVFS (0 == (CONFIG_PLATFORM & PLATFORM_ANDROID) && !defined(WIN32)) +#define HAVE_STATVFS (!defined(WIN32)) #if HAVE_STATVFS #include @@ -45,14 +45,9 @@ #endif #include -#if (CONFIG_PLATFORM & PLATFORM_SDL) #include #include #include "thread-sdl.h" -#else -#define sim_thread_unlock() NULL -#define sim_thread_lock(a) -#endif #include "thread.h" #include "kernel.h" #include "debug.h" @@ -537,18 +532,6 @@ int sim_fsync(int fd) } -#ifndef __PCTOOL__ -#ifdef WIN32 -/* sim-win32 */ -#define dlopen(_x_, _y_) LoadLibraryW(UTF8_TO_OS(_x_)) -#define dlsym(_x_, _y_) (void *)GetProcAddress(_x_, _y_) -#define dlclose(_x_) FreeLibrary(_x_) -#else -/* sim-x11 */ -#include -#endif - - void *lc_open(const char *filename, char *buf, size_t buf_size) { const char *sim_path = get_sim_pathname(filename);