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