diff options
author | Pedro Alves <palves@redhat.com> | 2007-09-03 22:12:13 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2007-09-03 22:12:13 +0000 |
commit | 26669a276811c6d2836868651a28d802503ab987 (patch) | |
tree | 40056f5194d9225a7363e23327065112ac4fb78f /gdb/testsuite/gdb.base/unload.c | |
parent | 34d86dddf2da7c73da45f0d42b1799021bf86395 (diff) | |
download | gdb-26669a276811c6d2836868651a28d802503ab987.zip gdb-26669a276811c6d2836868651a28d802503ab987.tar.gz gdb-26669a276811c6d2836868651a28d802503ab987.tar.bz2 |
* gdb.base/unload.c (dlopen, dlsym): Use the TEXT macro to convert
the dll name to unicode.
Diffstat (limited to 'gdb/testsuite/gdb.base/unload.c')
-rw-r--r-- | gdb/testsuite/gdb.base/unload.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/unload.c b/gdb/testsuite/gdb.base/unload.c index 2d98153..f882350 100644 --- a/gdb/testsuite/gdb.base/unload.c +++ b/gdb/testsuite/gdb.base/unload.c @@ -20,8 +20,12 @@ #ifdef __WIN32__ #include <windows.h> -#define dlopen(name, mode) LoadLibrary (name) -#define dlsym(handle, func) GetProcAddress (handle, func) +#define dlopen(name, mode) LoadLibrary (TEXT (name)) +#ifdef _WIN32_WCE +# define dlsym(handle, func) GetProcAddress (handle, TEXT (func)) +#else +# define dlsym(handle, func) GetProcAddress (handle, func) +#endif #define dlclose(handle) FreeLibrary (handle) #define dlerror() "error %d occurred", GetLastError () #else |