From 1053eccb36298fdf02c7119706ca6f7465932f1d Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 12 Jun 2006 16:18:17 +0200 Subject: [PATCH] include: Added prototype for DllMain. --- dlls/glut32/glut.c | 2 ++ include/winbase.h | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/dlls/glut32/glut.c b/dlls/glut32/glut.c index 0d50e6f4b6d..93a94ea6155 100644 --- a/dlls/glut32/glut.c +++ b/dlls/glut32/glut.c @@ -16,7 +16,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include #include "windef.h" +#include "winbase.h" static void (*__glutExitFunc)(int ret) = 0; diff --git a/include/winbase.h b/include/winbase.h index 9ea16d8f966..f802f3547e1 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -2344,6 +2344,11 @@ static inline PVOID WINAPI InterlockedExchangePointer( PVOID volatile *dest, PVO /* If this is not declared, we cannot compile many sources written with C++. */ int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int); +#ifdef __WINESRC__ +/* shouldn't be here, but is nice for type checking */ +BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) DECLSPEC_HIDDEN; +#endif + #ifdef __cplusplus } #endif -- 2.11.4.GIT