Fix a problem that caused the new interface code to not actually be
[mesa.git] / src / glut / glx / glut_get.c
index e4117bdc86e98a67cc54d8a9ab558549f9dc0ed8..9c1ca6caaea4158c671e5aafd630d09a179549fc 100644 (file)
@@ -10,7 +10,7 @@
 #include "glutint.h"
 
 /* CENTRY */
-int APIENTRY 
+int GLUTAPIENTRY 
 glutGet(GLenum param)
 {
   Window win, root;
@@ -186,9 +186,13 @@ glutGet(GLenum param)
     }
   case GLUT_ELAPSED_TIME:
     {
-      struct timeval elapsed, beginning, now;
+#ifdef OLD_VMS
+       struct timeval6 elapsed, beginning, now;
+#else
+       struct timeval elapsed, beginning, now;
+#endif
 
-      __glutInitTime(&beginning);
+       __glutInitTime(&beginning);
       GETTIMEOFDAY(&now);
       TIMEDELTA(elapsed, now, beginning);
       /* Return elapsed milliseconds. */