Resolve bug 806008 -- let Microsoft's compiler know to use Windows libraries even...
[freeglut] / include / GL / glut.h
index 8856b3e..d05d597 100644 (file)
 #endif
 
 #pragma comment (lib, "winmm.lib")       /* link with Windows MultiMedia lib */
+#pragma comment (lib, "user32.lib") /* link with Windows user lib */
+#pragma comment (lib, "gdi32.lib") /* link with Windows GDI lib */
 #pragma comment (lib, "opengl32.lib")    /* link with Microsoft OpenGL lib */
 #pragma comment (lib, "glu32.lib")       /* link with OpenGL Utility lib */
 
+
 #else
 #      define FGAPI
 #      define FGAPIENTRY
@@ -467,8 +470,8 @@ FGAPI void    FGAPIENTRY glutBitmapCharacter( void* font, int character );
 FGAPI int     FGAPIENTRY glutBitmapWidth( void* font, int character );
 FGAPI void    FGAPIENTRY glutStrokeCharacter( void* font, int character );
 FGAPI int     FGAPIENTRY glutStrokeWidth( void* font, int character );
-FGAPI int     FGAPIENTRY glutBitmapLength( void* font, const char* string );
-FGAPI int     FGAPIENTRY glutStrokeLength( void* font, const char* string );
+FGAPI int     FGAPIENTRY glutBitmapLength( void* font, const unsigned char* string );
+FGAPI int     FGAPIENTRY glutStrokeLength( void* font, const unsigned char* string );
 
 /*
  * Geometry functions, see freeglut_geometry.c
@@ -541,3 +544,4 @@ FGAPI void    FGAPIENTRY glutReportErrors( void );
 /*** END OF FILE ***/
 
 #endif /* __GLUT_H__ */
+