From 2bc1b897720036ed18fca7d77ed9a985e72f5dfd Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Wed, 22 Feb 2006 10:30:35 +0000 Subject: [PATCH] Win32: Made the window message proc static --- platform_build/win32_ms_cmdline/build.bat | 2 +- src/native/win32/org_lwjgl_opengl_Display.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/platform_build/win32_ms_cmdline/build.bat b/platform_build/win32_ms_cmdline/build.bat index 3fb32f35..8f2797ca 100644 --- a/platform_build/win32_ms_cmdline/build.bat +++ b/platform_build/win32_ms_cmdline/build.bat @@ -5,7 +5,7 @@ if "%PLTSDKHOME%" == "" goto errorpltsdkhome if "%CHOME%" == "" goto errorchome if "%ALHOME%" == "" goto erroralhome if "%DXHOME%" == "" goto errordxhome -set COPTIONS=/Wp64 /I"%DXHOME%\include" /I"%CHOME%\include" /I"%PLTSDKHOME%\include" /I"%JAVA_HOME%\include" /I"%JAVA_HOME%\include\win32" /I"%ALHOME%\include" /I"..\..\src\native\common" /Ox /Ob2 /Oi /Ot /Oy /FD /EHsc /MT /Gy /W2 /nologo /c /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "LWJGL_EXPORTS" /D "_WINDLL" +set COPTIONS=/Wp64 /I"%CHOME%\include" /I"%PLTSDKHOME%\include" /I"%DXHOME%\include" /I"%JAVA_HOME%\include" /I"%JAVA_HOME%\include\win32" /I"%ALHOME%\include" /I"..\..\src\native\common" /Ox /Ob2 /Oi /Ot /Oy /FD /EHsc /MT /Gy /W2 /nologo /c /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "LWJGL_EXPORTS" /D "_WINDLL" rem ************************************************* rem ** Build using free compiler requires jawt.dll ** rem ** and awt.dll in current dir. /delayload ** diff --git a/src/native/win32/org_lwjgl_opengl_Display.c b/src/native/win32/org_lwjgl_opengl_Display.c index 53b217f6..18aefb84 100644 --- a/src/native/win32/org_lwjgl_opengl_Display.c +++ b/src/native/win32/org_lwjgl_opengl_Display.c @@ -120,10 +120,11 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_Win32Display_didMaximize did_maximize = false; return result; } + /* * WindowProc for the GL window. */ -LRESULT CALLBACK lwjglWindowProc(HWND hWnd, +static LRESULT CALLBACK lwjglWindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)