From: <fa...@us...> - 2009-03-19 14:55:44
|
Revision: 805 http://freeglut.svn.sourceforge.net/freeglut/?rev=805&view=rev Author: fayjf Date: 2009-03-19 14:55:14 +0000 (Thu, 19 Mar 2009) Log Message: ----------- Fixing "freeglut_input_devices.c" for MSVS2005 and later per e-mail from Diederick Niehorster dated Thu 3/19/2009 6:57 AM Modified Paths: -------------- trunk/freeglut/freeglut/src/freeglut_input_devices.c Modified: trunk/freeglut/freeglut/src/freeglut_input_devices.c =================================================================== --- trunk/freeglut/freeglut/src/freeglut_input_devices.c 2009-03-17 17:19:05 UTC (rev 804) +++ trunk/freeglut/freeglut/src/freeglut_input_devices.c 2009-03-19 14:55:14 UTC (rev 805) @@ -136,15 +136,16 @@ */ void fgInitialiseInputDevices ( void ) { - const char *dial_device=NULL; if( !fgState.InputDevsInitialised ) { #if TARGET_HOST_MS_WINDOWS && ( _MSC_VER >= 1400 ) // will return true for VC8 (VC2005) and higher + char *dial_device=NULL; size_t sLen; errno_t err = _dupenv_s( &dial_device, &sLen, "GLUT_DIALS_SERIAL" ); if (err) fgError("Error getting GLUT_DIALS_SERIAL environment variable"); #else + const char *dial_device=NULL; dial_device = getenv ( "GLUT_DIALS_SERIAL" ); #endif #if TARGET_HOST_MS_WINDOWS This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |