projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding a Frequently Asked Questions file
[freeglut]
/
src
/
freeglut_window.c
diff --git
a/src/freeglut_window.c
b/src/freeglut_window.c
index
0d2705a
..
04f0bf9
100644
(file)
--- a/
src/freeglut_window.c
+++ b/
src/freeglut_window.c
@@
-29,8
+29,10
@@
#include "freeglut_internal.h"
#if defined(_WIN32_WCE)
#include "freeglut_internal.h"
#if defined(_WIN32_WCE)
-#include <aygshell.h>
-#pragma comment( lib, "Aygshell.lib" ) /* library pragmas are bad */
+# include <Aygshell.h>
+# ifdef FREEGLUT_LIB_PRAGMAS
+# pragma comment( lib, "Aygshell.lib" )
+# endif
static wchar_t* fghWstrFromStr(const char* str)
{
static wchar_t* fghWstrFromStr(const char* str)
{
@@
-42,7
+44,6
@@
static wchar_t* fghWstrFromStr(const char* str)
return wstr;
}
return wstr;
}
-
#endif /* defined(_WIN32_WCE) */
/*
#endif /* defined(_WIN32_WCE) */
/*
@@
-172,10
+173,10
@@
XVisualInfo* fgChooseVisual( void )
* Setup the pixel format for a Win32 window
*/
#if TARGET_HOST_MS_WINDOWS
* Setup the pixel format for a Win32 window
*/
#if TARGET_HOST_MS_WINDOWS
-/* WRONG-- FIXME */
/* The following include file is available from SGI but is not standard:
* #include <GL/wglext.h>
* So we copy the necessary parts out of it.
/* The following include file is available from SGI but is not standard:
* #include <GL/wglext.h>
* So we copy the necessary parts out of it.
+ * XXX: should local definitions for extensions be put in a separate include file?
*/
typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
*/
typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);