Module: wine Branch: refs/heads/master Commit: 1053eccb36298fdf02c7119706ca6f7465932f1d URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=1053eccb36298fdf02c71197...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Jun 12 16:18:17 2006 +0200
include: Added prototype for DllMain.
---
dlls/glut32/glut.c | 2 ++ include/winbase.h | 5 +++++ 2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/glut32/glut.c b/dlls/glut32/glut.c index 0d50e6f..93a94ea 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 <stdarg.h> #include "windef.h" +#include "winbase.h"
static void (*__glutExitFunc)(int ret) = 0;
diff --git a/include/winbase.h b/include/winbase.h index 9ea16d8..f802f35 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -2344,6 +2344,11 @@ #endif /* 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