Added couple more #ifdef DLOPEN and also moved #include winquake.h. It must be before #include gl.h, or compile will fail.

This commit is contained in:
Dabb 2000-11-22 13:05:27 +00:00
parent 8ce7084ba1
commit a58579cebf

View file

@ -31,6 +31,10 @@
# include "config.h"
#endif
#ifdef _WIN32
# include "winquake.h"
#endif
#include <GL/gl.h>
#ifdef HAVE_GL_GLEXT_H
@ -50,11 +54,6 @@
# endif
#endif
#ifdef _WIN32
# include "winquake.h"
#endif
#include "console.h"
#include "glquake.h"
#include "input.h"
@ -379,12 +378,12 @@ VID_Init8bitPalette (void)
Con_Printf ("disabled.\n");
return;
}
#ifdef HAVE_DLOPEN
if (!(dlhand = dlopen (NULL, RTLD_LAZY))) {
Con_Printf ("unable to check.\n");
return;
}
#endif
if (vid_use8bit->int_val) {
#ifdef HAVE_TDFXGL
3dfx_Init8bitPalette ();
@ -396,8 +395,10 @@ VID_Init8bitPalette (void)
Con_Printf ("not found.\n");
}
}
#ifdef HAVE_DLOPEN
dlclose (dlhand);
dlhand = NULL;
#endif
}
void