diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-09-08 20:39:55 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-09-08 20:39:55 +0000 |
commit | e22aa75f5c14eed452bf35fae449ffe753093e18 (patch) | |
tree | ae24bd1d89c4ee64e3525181666c99e9571304d7 /uisimulator/common | |
parent | 4120652df4820a3db46a9693a8dd3ab50ca75530 (diff) | |
download | rockbox-e22aa75f5c14eed452bf35fae449ffe753093e18.tar.gz rockbox-e22aa75f5c14eed452bf35fae449ffe753093e18.zip |
Cleanup io.c a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28048 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common')
-rw-r--r-- | uisimulator/common/io.c | 19 |
1 files changed, 1 insertions, 18 deletions
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 <time.h> #include "config.h" -#define HAVE_STATVFS (0 == (CONFIG_PLATFORM & PLATFORM_ANDROID) && !defined(WIN32)) +#define HAVE_STATVFS (!defined(WIN32)) #if HAVE_STATVFS #include <sys/statvfs.h> @@ -45,14 +45,9 @@ #endif #include <fcntl.h> -#if (CONFIG_PLATFORM & PLATFORM_SDL) #include <SDL.h> #include <SDL_thread.h> #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 <dlfcn.h> -#endif - - void *lc_open(const char *filename, char *buf, size_t buf_size) { const char *sim_path = get_sim_pathname(filename); |