diff options
author | Jouk Jansen <[email protected]> | 2001-02-09 12:19:17 +0000 |
---|---|---|
committer | Jouk Jansen <[email protected]> | 2001-02-09 12:19:17 +0000 |
commit | 18ce0f12540b016cbb08b7d304d80af0f7bb168b (patch) | |
tree | 63468a2e8bad2d913e30e64dfa82fdf2fbc3779c /src/glut/glx/glut_init.c | |
parent | 9db3f95acea5622573803890afd506ebcdaab3b3 (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/glut_init.c')
-rw-r--r-- | src/glut/glx/glut_init.c | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/glut/glx/glut_init.c b/src/glut/glx/glut_init.c index d4d0e8a9783..dcd423a9417 100644 --- a/src/glut/glx/glut_init.c +++ b/src/glut/glx/glut_init.c @@ -154,11 +154,19 @@ __glutOpenXConnection(char *display) #endif /* _WIN32 */ void -__glutInitTime(struct timeval *beginning) +#ifdef OLD_VMS + __glutInitTime(struct timeval6 *beginning) +#else + __glutInitTime(struct timeval *beginning) +#endif { static int beenhere = 0; - static struct timeval genesis; - +#ifdef OLD_VMS + static struct timeval6 genesis; +#else + static struct timeval genesis; +#endif + if (!beenhere) { GETTIMEOFDAY(&genesis); beenhere = 1; @@ -183,8 +191,12 @@ glutInit(int *argcp, char **argv) { char *display = NULL; char *str, *geometry = NULL; - struct timeval unused; - int i; +#ifdef OLD_VMS + struct timeval6 unused; +#else + struct timeval unused; +#endif + int i; if (__glutDisplay) { __glutWarning("glutInit being called a second time."); |