From 32eeed504202b2cb3d788d0387a0b94c850e7696 Mon Sep 17 00:00:00 2001 From: fayjf Date: Sat, 10 Sep 2011 12:53:06 +0000 Subject: [PATCH] Fixing build warnings on OpenSUSE (and probably other Linux distros) by enclosing some function prototypes within an "ifdef" checking for Windows per e-mail from Johannes Obermayr dated 8/8/2011 at 1:05 PM (thank you, Johannes) git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@938 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/freeglut_internal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freeglut/freeglut/src/freeglut_internal.h b/freeglut/freeglut/src/freeglut_internal.h index 0a6ece4..540f75f 100644 --- a/freeglut/freeglut/src/freeglut_internal.h +++ b/freeglut/freeglut/src/freeglut_internal.h @@ -932,6 +932,7 @@ void fgEnumWindows( FGCBenumerator enumCallback, SFG_Enumerator* enumerator ); void fgEnumSubWindows( SFG_Window* window, FGCBenumerator enumCallback, SFG_Enumerator* enumerator ); +#if TARGET_HOST_MS_WINDOWS /* * Helper functions for getting client area from the window rect * and the window rect from the client area given the style of the window @@ -942,6 +943,7 @@ void fghComputeWindowRectFromClientArea_QueryWindow( const SFG_Window *window, R void fghComputeClientAreaFromWindowRect ( const SFG_Window *window, RECT *windowRect, BOOL wantPosOutside ); RECT fghGetClientArea ( const SFG_Window *window, BOOL wantPosOutside ); void fghGetBorderWidth(const DWORD windowStyle, int* xBorderWidth, int* yBorderWidth); +#endif /* * fgWindowByHandle returns a (SFG_Window *) value pointing to the