summaryrefslogtreecommitdiff
path: root/sal/systools/win32
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-06-06 16:02:43 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-06-06 16:02:43 +0000
commitbf8c5d020978e111acc66fbae73b3c6fa71be00d (patch)
treebc52caad898d1a5da17f54a57ea99a381f2b13ec /sal/systools/win32
parent2603b8de0663be70ada1ade916a4826d60ed4892 (diff)
INTEGRATION: CWS mingwport13 (1.3.150); FILE MERGED
2008/05/05 11:46:25 vg 1.3.150.1: #i88772# MinGW fixes for DEV300
Diffstat (limited to 'sal/systools/win32')
-rw-r--r--sal/systools/win32/uwinapi/ResolveUnicows.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/sal/systools/win32/uwinapi/ResolveUnicows.cpp b/sal/systools/win32/uwinapi/ResolveUnicows.cpp
index d18be652bfc3..06b4999c1ce5 100644
--- a/sal/systools/win32/uwinapi/ResolveUnicows.cpp
+++ b/sal/systools/win32/uwinapi/ResolveUnicows.cpp
@@ -1,4 +1,5 @@
#ifdef __MINGW32__
+#define _GDI32_
#include "macros.h"
#include <multimon.h>
extern "C" {
@@ -16,7 +17,7 @@ EXTERN_C void WINAPI ResolveThunk_UNICOWS( FARPROC *lppfn, LPCSTR lpLibFileName,
}
static void GetProcAddress_Thunk();
-EXTERN_C _declspec( dllexport ) FARPROC kernel32_GetProcAddress_Ptr = (FARPROC)GetProcAddress_Thunk;
+EXTERN_C { _declspec( dllexport ) FARPROC kernel32_GetProcAddress_Ptr = (FARPROC)GetProcAddress_Thunk; }
static FARPROC WINAPI GetProcAddress_Failure (HINSTANCE,LPCSTR);
static void GetProcAddress_Thunk()
{
@@ -38,7 +39,7 @@ static FARPROC WINAPI GetProcAddress_Failure (HINSTANCE,LPCSTR)
#define DEFINE_UNICOWS_THUNK( module, rettype, calltype, func, params ) \
static void func##_Thunk(); \
-EXTERN_C _declspec( dllexport ) FARPROC module##_##func##_Ptr = (FARPROC)func##_Thunk; \
+EXTERN_C { _declspec( dllexport ) FARPROC module##_##func##_Ptr = (FARPROC)func##_Thunk; } \
static rettype calltype func##_##Failure params; \
static void func##_Thunk() \
{ \
@@ -123,7 +124,7 @@ DEFINE_UNICOWS_THUNK( kernel32, HANDLE, WINAPI, CreateWaitableTimerW, (LPSECURIT
DEFINE_UNICOWS_THUNK( user32, HWND, WINAPI, CreateWindowExW, (DWORD,LPCWSTR,LPCWSTR,DWORD,int,int,int,int,HWND,HMENU,HINSTANCE,LPVOID) )
DEFINE_UNICOWS_THUNK( user32, HCONV, WINAPI, DdeConnect, (DWORD,HSZ,HSZ,PCONVCONTEXT) )
DEFINE_UNICOWS_THUNK( user32, HCONVLIST, WINAPI, DdeConnectList, (DWORD,HSZ,HSZ,HCONVLIST,PCONVCONTEXT) )
-DEFINE_UNICOWS_THUNK( user32, HSZ, WINAPI, DdeCreateStringHandleW, (DWORD,LPWSTR,int) )
+DEFINE_UNICOWS_THUNK( user32, HSZ, WINAPI, DdeCreateStringHandleW, (DWORD,LPCWSTR,int) )
DEFINE_UNICOWS_THUNK( user32, UINT, WINAPI, DdeInitializeW, (PDWORD,PFNCALLBACK,DWORD,DWORD) )
DEFINE_UNICOWS_THUNK( user32, UINT, WINAPI, DdeQueryConvInfo, (HCONV,DWORD,PCONVINFO) )
DEFINE_UNICOWS_THUNK( user32, DWORD, WINAPI, DdeQueryStringW, (DWORD,HSZ,LPWSTR,DWORD,int) )