summaryrefslogtreecommitdiff
path: root/src/glut/glx/glutint.h
diff options
context:
space:
mode:
authorJouk Jansen <joukj@hrem.stm.tudelft.nl>2001-02-09 12:19:17 +0000
committerJouk Jansen <joukj@hrem.stm.tudelft.nl>2001-02-09 12:19:17 +0000
commit18ce0f12540b016cbb08b7d304d80af0f7bb168b (patch)
tree63468a2e8bad2d913e30e64dfa82fdf2fbc3779c /src/glut/glx/glutint.h
parent9db3f95acea5622573803890afd506ebcdaab3b3 (diff)
Committing in .
Modified Files: Mesa/src-glut/glut_event.c Mesa/src-glut/glut_get.c Mesa/src-glut/glut_init.c Mesa/src-glut/glutint.h Patch for compilation on very old VMS (version 6.2 and earlier) ----------------------------------------------------------------------
Diffstat (limited to 'src/glut/glx/glutint.h')
-rw-r--r--src/glut/glx/glutint.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/glut/glx/glutint.h b/src/glut/glx/glutint.h
index 82e2465e81..488ff5983e 100644
--- a/src/glut/glx/glutint.h
+++ b/src/glut/glx/glutint.h
@@ -69,10 +69,11 @@
#ifdef __vms
#if ( __VMS_VER < 70000000 )
-struct timeval {
+#define OLD_VMS
+struct timeval6 {
__int64 val;
};
-extern int sys$gettim(struct timeval *);
+extern int sys$gettim(struct timeval6 *);
#else
#include <time.h>
#endif
@@ -530,8 +531,12 @@ struct _GLUTmenuItem {
typedef struct _GLUTtimer GLUTtimer;
struct _GLUTtimer {
GLUTtimer *next; /* list of timers */
- struct timeval timeout; /* time to be called */
- GLUTtimerCB func; /* timer (value) */
+#ifdef OLD_VMS
+ struct timeval6 timeout; /* time to be called */
+#else
+ struct timeval timeout; /* time to be called */
+#endif
+ GLUTtimerCB func; /* timer (value) */
int value; /* return value */
#ifdef SUPPORT_FORTRAN
GLUTtimerFCB ffunc; /* Fortran timer */
@@ -713,7 +718,11 @@ extern void __glutOpenXConnection(char *display);
#else
extern void __glutOpenWin32Connection(char *display);
#endif
+#if OLD_VMS
+extern void __glutInitTime(struct timeval6 *beginning);
+#else
extern void __glutInitTime(struct timeval *beginning);
+#endif
/* private routines for glut_menu.c (or win32_menu.c) */
#if defined(_WIN32)