Skip to content

Commit

Permalink
include: Make strict prototypes the default.
Browse files Browse the repository at this point in the history
  • Loading branch information
julliard committed Nov 29, 2023
1 parent c14de4c commit 240e438
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion include/mscoree.idl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cpp_quote("HRESULT WINAPI GetCORSystemDirectory(LPWSTR,DWORD,DWORD*);")
cpp_quote("HRESULT WINAPI GetCORVersion(LPWSTR,DWORD,DWORD*);")
cpp_quote("HRESULT WINAPI GetRequestedRuntimeInfo(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,DWORD,LPWSTR,DWORD,DWORD*,LPWSTR,DWORD,DWORD*);")
cpp_quote("HRESULT WINAPI LoadLibraryShim(LPCWSTR,LPCWSTR,LPVOID,HMODULE*);")
cpp_quote("#ifdef WINE_STRICT_PROTOTYPES")
cpp_quote("#ifndef WINE_NO_STRICT_PROTOTYPES")
cpp_quote("typedef HRESULT (__stdcall *FLockClrVersionCallback)(void);")
cpp_quote("#else")
cpp_quote("typedef HRESULT (__stdcall *FLockClrVersionCallback)();")
Expand Down
2 changes: 1 addition & 1 deletion include/rpcndr.h
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ typedef struct _MIDL_SYNTAX_INFO

typedef void (__RPC_API *STUB_THUNK)( PMIDL_STUB_MESSAGE );

#ifdef WINE_STRICT_PROTOTYPES
#ifndef WINE_NO_STRICT_PROTOTYPES
typedef LONG (__RPC_API *SERVER_ROUTINE)(void);
#else
typedef LONG (__RPC_API *SERVER_ROUTINE)();
Expand Down
2 changes: 1 addition & 1 deletion include/vfw.h
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ BOOL VFWAPI ICInstall(DWORD fccType, DWORD fccHandler, LPARAM lParam, LPSTR
BOOL VFWAPI ICRemove(DWORD fccType, DWORD fccHandler, UINT wFlags);
LRESULT VFWAPI ICGetInfo(HIC hic,ICINFO *picinfo, DWORD cb);
HIC VFWAPI ICOpen(DWORD fccType, DWORD fccHandler, UINT wMode);
#ifdef WINE_STRICT_PROTOTYPES
#ifndef WINE_NO_STRICT_PROTOTYPES
HIC VFWAPI ICOpenFunction(DWORD fccType, DWORD fccHandler, UINT wMode, DRIVERPROC lpfnHandler);
#else
HIC VFWAPI ICOpenFunction(DWORD fccType, DWORD fccHandler, UINT wMode, FARPROC lpfnHandler);
Expand Down
2 changes: 1 addition & 1 deletion include/wincrypt.h
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ typedef struct _CRYPT_SMIME_CAPABILITIES {

typedef struct _VTableProvStruc {
DWORD Version;
#ifdef WINE_STRICT_PROTOTYPES
#ifndef WINE_NO_STRICT_PROTOTYPES
BOOL (WINAPI *FuncVerifyImage)(LPCSTR,BYTE*);
void (WINAPI *FuncReturnhWnd)(HWND*);
#else
Expand Down
3 changes: 1 addition & 2 deletions include/windef.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ typedef unsigned int DWORD, *PDWORD, *LPDWORD;

#ifdef __WINESRC__
#define WINE_NO_UNICODE_MACROS 1
#define WINE_STRICT_PROTOTYPES 1
#endif

#ifdef WINE_NO_UNICODE_MACROS
Expand Down Expand Up @@ -326,7 +325,7 @@ typedef HICON HCURSOR;

/* Callback function pointers types */

#ifdef WINE_STRICT_PROTOTYPES
#ifndef WINE_NO_STRICT_PROTOTYPES
typedef INT_PTR (CALLBACK *FARPROC)(void);
typedef INT_PTR (CALLBACK *NEARPROC)(void);
typedef INT_PTR (CALLBACK *PROC)(void);
Expand Down
2 changes: 1 addition & 1 deletion include/wine/glu.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void APIENTRY gluLoadSamplingMatrices(GLUnurbs *nobj,const GLfloat modelMatrix[1
void APIENTRY gluNurbsProperty(GLUnurbs *nobj,GLenum property,GLfloat value);
void APIENTRY gluGetNurbsProperty(GLUnurbs *nobj,GLenum property,GLfloat *value);

#ifdef WINE_STRICT_PROTOTYPES
#ifndef WINE_NO_STRICT_PROTOTYPES
void APIENTRY gluQuadricCallback(GLUquadric *qobj,GLenum which,void (CALLBACK *fn)(void));
void APIENTRY gluTessCallback(GLUtesselator *tess,GLenum which,void (CALLBACK *fn)(void));
void APIENTRY gluNurbsCallback(GLUnurbs *nobj,GLenum which,void (CALLBACK *fn)(void));
Expand Down
6 changes: 0 additions & 6 deletions include/wine/windef16.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,7 @@ typedef BOOL16 (CALLBACK *PROPENUMPROC16)(HWND16,SEGPTR,HANDLE16);
typedef VOID (CALLBACK *TIMERPROC16)(HWND16,UINT16,UINT16,DWORD);
typedef LRESULT (CALLBACK *WNDENUMPROC16)(HWND16,LPARAM);
typedef LRESULT (CALLBACK *WNDPROC16)(HWND16,UINT16,WPARAM16,LPARAM);

#ifdef WINE_STRICT_PROTOTYPES
typedef LRESULT (CALLBACK *FARPROC16)(void);
typedef INT16 (CALLBACK *PROC16)(void);
#else
typedef LRESULT (CALLBACK *FARPROC16)();
typedef INT16 (CALLBACK *PROC16)();
#endif

#endif /* __WINE_WINDEF16_H */

0 comments on commit 240e438

Please sign in to comment.