diff options
Diffstat (limited to 'Source/WebCore/platform/FileSystem.h')
-rw-r--r-- | Source/WebCore/platform/FileSystem.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/Source/WebCore/platform/FileSystem.h b/Source/WebCore/platform/FileSystem.h index 49a78e8..418a645 100644 --- a/Source/WebCore/platform/FileSystem.h +++ b/Source/WebCore/platform/FileSystem.h @@ -47,6 +47,11 @@ #endif #endif +#if PLATFORM(WX) +#include <wx/defs.h> +#include <wx/file.h> +#endif + #if USE(CF) || (PLATFORM(QT) && defined(Q_WS_MAC)) typedef struct __CFBundle* CFBundleRef; typedef const struct __CFData* CFDataRef; @@ -72,7 +77,9 @@ typedef struct _GModule GModule; namespace WebCore { // PlatformModule -#if OS(WINDOWS) +#if PLATFORM(GTK) +typedef GModule* PlatformModule; +#elif OS(WINDOWS) typedef HMODULE PlatformModule; #elif PLATFORM(QT) #if defined(Q_WS_MAC) @@ -82,8 +89,6 @@ typedef QLibrary* PlatformModule; #else typedef void* PlatformModule; #endif -#elif PLATFORM(GTK) -typedef GModule* PlatformModule; #elif USE(CF) typedef CFBundleRef PlatformModule; #else @@ -117,6 +122,9 @@ typedef unsigned PlatformModuleVersion; #if PLATFORM(QT) typedef QFile* PlatformFileHandle; const PlatformFileHandle invalidPlatformFileHandle = 0; +#elif PLATFORM(GTK) +typedef GFileIOStream* PlatformFileHandle; +const PlatformFileHandle invalidPlatformFileHandle = 0; #elif OS(WINDOWS) typedef HANDLE PlatformFileHandle; // FIXME: -1 is INVALID_HANDLE_VALUE, defined in <winbase.h>. Chromium tries to @@ -125,8 +133,8 @@ const PlatformFileHandle invalidPlatformFileHandle = reinterpret_cast<HANDLE>(-1 #elif PLATFORM(BREWMP) typedef IFile* PlatformFileHandle; const PlatformFileHandle invalidPlatformFileHandle = 0; -#elif PLATFORM(GTK) -typedef GFileIOStream* PlatformFileHandle; +#elif PLATFORM(WX) +typedef wxFile* PlatformFileHandle; const PlatformFileHandle invalidPlatformFileHandle = 0; #else typedef int PlatformFileHandle; |