From cbb58f1f70524eb0507d0ae1e5b29a1fe157f2e2 Mon Sep 17 00:00:00 2001 From: "John F. Fay" Date: Sun, 12 Feb 2012 04:41:32 +0000 Subject: [PATCH] Moving some Windows-specific preprocessor stuff and a prototype from "freeglut_init.c" to the Windows header file git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1077 7f0cb862-5218-0410-a997-914c9d46530a --- src/Common/freeglut_init.c | 18 ------------------ src/mswin/freeglut_internal_mswin.h | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/src/Common/freeglut_init.c b/src/Common/freeglut_init.c index 27abc46..823fab4 100644 --- a/src/Common/freeglut_init.c +++ b/src/Common/freeglut_init.c @@ -314,24 +314,6 @@ void fgDeinitialize( void ) } -#if TARGET_HOST_MS_WINDOWS -#define NoValue 0x0000 -#define XValue 0x0001 -#define YValue 0x0002 -#define WidthValue 0x0004 -#define HeightValue 0x0008 -#define AllValues 0x000F -#define XNegative 0x0010 -#define YNegative 0x0020 - -extern int XParseGeometry ( - const char *string, - int *x, - int *y, - unsigned int *width, /* RETURN */ - unsigned int *height); /* RETURN */ -#endif - /* -- INTERFACE FUNCTIONS -------------------------------------------------- */ /* diff --git a/src/mswin/freeglut_internal_mswin.h b/src/mswin/freeglut_internal_mswin.h index 37a77b4..d39d359 100644 --- a/src/mswin/freeglut_internal_mswin.h +++ b/src/mswin/freeglut_internal_mswin.h @@ -95,6 +95,25 @@ struct tagSFG_PlatformWindowState +/* For "freeglut_init.c", some definitions of symbols and a prototype to emulate the X11 functionality */ +#define NoValue 0x0000 +#define XValue 0x0001 +#define YValue 0x0002 +#define WidthValue 0x0004 +#define HeightValue 0x0008 +#define AllValues 0x000F +#define XNegative 0x0010 +#define YNegative 0x0020 + +extern int XParseGeometry ( + const char *string, + int *x, + int *y, + unsigned int *width, /* RETURN */ + unsigned int *height); /* RETURN */ + + + /* Joystick-Specific Definitions */ #if !defined(_WIN32_WCE) # define _JS_MAX_AXES 8 -- 1.7.10.4