X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmswin%2Ffreeglut_internal_mswin.h;h=8cb3769be1ef2a56935d37b279ad51953886a4c0;hb=7b016df720765f1e7bd89bc4b0d15b340b8b4726;hp=d39d359467ad8990baa0692c2f557dd89eb7c2c6;hpb=cbb58f1f70524eb0507d0ae1e5b29a1fe157f2e2;p=freeglut diff --git a/src/mswin/freeglut_internal_mswin.h b/src/mswin/freeglut_internal_mswin.h index d39d359..8cb3769 100644 --- a/src/mswin/freeglut_internal_mswin.h +++ b/src/mswin/freeglut_internal_mswin.h @@ -34,31 +34,33 @@ * compatibility. */ #if !defined(_WIN32_WCE) -# include -# include -# include +# include +# include +# include /* CYGWIN does not have tchar.h, but has TEXT(x), defined in winnt.h. */ -# ifndef __CYGWIN__ -# include -# else -# define _TEXT(x) TEXT(x) -# define _T(x) TEXT(x) -# endif +# ifndef __CYGWIN__ +# include +# else +# define _TEXT(x) TEXT(x) +# define _T(x) TEXT(x) +# endif #endif +#ifndef HAVE_VFPRINTF #define HAVE_VFPRINTF 1 +#endif /* MinGW may lack a prototype for ChangeDisplaySettingsEx() (depending on the version?) */ #if !defined(ChangeDisplaySettingsEx) LONG WINAPI ChangeDisplaySettingsExA(LPCSTR,LPDEVMODEA,HWND,DWORD,LPVOID); LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID); -# ifdef UNICODE -# define ChangeDisplaySettingsEx ChangeDisplaySettingsExW -# else -# define ChangeDisplaySettingsEx ChangeDisplaySettingsExA -# endif +# ifdef UNICODE +# define ChangeDisplaySettingsEx ChangeDisplaySettingsExW +# else +# define ChangeDisplaySettingsEx ChangeDisplaySettingsExA +# endif #endif @@ -76,12 +78,12 @@ struct tagSFG_PlatformDisplay * Make "freeglut" window handle and context types so that we don't need so * much conditionally-compiled code later in the library. */ -typedef HWND SFG_WindowHandleType ; -typedef HGLRC SFG_WindowContextType ; +typedef HWND SFG_WindowHandleType; +typedef HGLRC SFG_WindowContextType; typedef struct tagSFG_PlatformContext SFG_PlatformContext; struct tagSFG_PlatformContext { - HDC Device; /* The window's device context */ + HDC Device; /* The window's device context */ }; @@ -109,14 +111,14 @@ extern int XParseGeometry ( const char *string, int *x, int *y, - unsigned int *width, /* RETURN */ + unsigned int *width, /* RETURN */ unsigned int *height); /* RETURN */ /* Joystick-Specific Definitions */ #if !defined(_WIN32_WCE) -# define _JS_MAX_AXES 8 +# define _JS_MAX_AXES 8 typedef struct tagSFG_PlatformJoystick SFG_PlatformJoystick; struct tagSFG_PlatformJoystick { @@ -140,4 +142,4 @@ struct tagSFG_PlatformJoystick extern void (__cdecl *__glutExitFunc)( int return_value ); -#endif /* FREEGLUT_INTERNAL_MSWIN_H */ \ No newline at end of file +#endif /* FREEGLUT_INTERNAL_MSWIN_H */