Force STRICT checking of callback function types when compiling Wine.

This commit is contained in:
Alexandre Julliard 2001-07-30 19:10:43 +00:00
parent 5905ba954a
commit b846b2df37
2 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@ extern "C" {
/* Define a bunch of callback types */ /* Define a bunch of callback types */
#ifdef STRICT #if defined(STRICT) || defined(__WINE__)
typedef BOOL CALLBACK (*CALINFO_ENUMPROCA)(LPSTR); typedef BOOL CALLBACK (*CALINFO_ENUMPROCA)(LPSTR);
typedef BOOL CALLBACK (*CALINFO_ENUMPROCW)(LPWSTR); typedef BOOL CALLBACK (*CALINFO_ENUMPROCW)(LPWSTR);
typedef BOOL CALLBACK (*CODEPAGE_ENUMPROCA)(LPSTR); typedef BOOL CALLBACK (*CODEPAGE_ENUMPROCA)(LPSTR);
@ -32,7 +32,7 @@ typedef FARPROC LOCALE_ENUMPROCA;
typedef FARPROC LOCALE_ENUMPROCW; typedef FARPROC LOCALE_ENUMPROCW;
typedef FARPROC TIMEFMT_ENUMPROCA; typedef FARPROC TIMEFMT_ENUMPROCA;
typedef FARPROC TIMEFMT_ENUMPROCW; typedef FARPROC TIMEFMT_ENUMPROCW;
#endif /* STRICT */ #endif /* STRICT || __WINE__ */
DECL_WINELIB_TYPE_AW(CALINFO_ENUMPROC) DECL_WINELIB_TYPE_AW(CALINFO_ENUMPROC)
DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC) DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC)

View File

@ -14,7 +14,7 @@ extern "C" {
/* Define a bunch of callback types */ /* Define a bunch of callback types */
#ifdef STRICT #if defined(STRICT) || defined(__WINE__)
typedef BOOL CALLBACK (*DLGPROC)(HWND,UINT,WPARAM,LPARAM); typedef BOOL CALLBACK (*DLGPROC)(HWND,UINT,WPARAM,LPARAM);
typedef BOOL CALLBACK (*DRAWSTATEPROC)(HDC,LPARAM,WPARAM,int,int); typedef BOOL CALLBACK (*DRAWSTATEPROC)(HDC,LPARAM,WPARAM,int,int);
typedef INT CALLBACK (*EDITWORDBREAKPROCA)(LPSTR,INT,INT,INT); typedef INT CALLBACK (*EDITWORDBREAKPROCA)(LPSTR,INT,INT,INT);
@ -25,8 +25,8 @@ typedef BOOL CALLBACK (*NAMEENUMPROCA)(LPSTR,LPARAM);
typedef BOOL CALLBACK (*NAMEENUMPROCW)(LPWSTR,LPARAM); typedef BOOL CALLBACK (*NAMEENUMPROCW)(LPWSTR,LPARAM);
typedef BOOL CALLBACK (*PROPENUMPROCA)(HWND,LPCSTR,HANDLE); typedef BOOL CALLBACK (*PROPENUMPROCA)(HWND,LPCSTR,HANDLE);
typedef BOOL CALLBACK (*PROPENUMPROCW)(HWND,LPCWSTR,HANDLE); typedef BOOL CALLBACK (*PROPENUMPROCW)(HWND,LPCWSTR,HANDLE);
typedef BOOL CALLBACK (*PROPENUMPROCEXA)(HWND,LPCSTR,HANDLE,DWORD); typedef BOOL CALLBACK (*PROPENUMPROCEXA)(HWND,LPCSTR,HANDLE,ULONG_PTR);
typedef BOOL CALLBACK (*PROPENUMPROCEXW)(HWND,LPCWSTR,HANDLE,DWORD); typedef BOOL CALLBACK (*PROPENUMPROCEXW)(HWND,LPCWSTR,HANDLE,ULONG_PTR);
typedef VOID CALLBACK (*SENDASYNCPROC)(HWND,UINT,ULONG_PTR,LRESULT); typedef VOID CALLBACK (*SENDASYNCPROC)(HWND,UINT,ULONG_PTR,LRESULT);
typedef VOID CALLBACK (*TIMERPROC)(HWND,UINT,UINT,DWORD); typedef VOID CALLBACK (*TIMERPROC)(HWND,UINT,UINT,DWORD);
typedef BOOL CALLBACK (*WNDENUMPROC)(HWND,LPARAM); typedef BOOL CALLBACK (*WNDENUMPROC)(HWND,LPARAM);
@ -46,7 +46,7 @@ typedef FARPROC PROPENUMPROCEXW;
typedef FARPROC SENDASYNCPROC; typedef FARPROC SENDASYNCPROC;
typedef FARPROC TIMERPROC; typedef FARPROC TIMERPROC;
typedef FARPROC WNDENUMPROC; typedef FARPROC WNDENUMPROC;
#endif /* STRICT */ #endif /* STRICT || __WINE__ */
typedef NAMEENUMPROCA WINSTAENUMPROCA; typedef NAMEENUMPROCA WINSTAENUMPROCA;
typedef NAMEENUMPROCA DESKTOPENUMPROCA; typedef NAMEENUMPROCA DESKTOPENUMPROCA;