include readtex.h instead of readtex.c
diff --git a/progs/demos/isosurf.c b/progs/demos/isosurf.c
index 555757c..0710bc6 100644
--- a/progs/demos/isosurf.c
+++ b/progs/demos/isosurf.c
@@ -36,7 +36,7 @@
 #define GL_GLEXT_PROTOTYPES
 #include "GL/glut.h"
 
-#include "readtex.c"   /* I know, this is a hack.  KW: me too. */
+#include "readtex.h"
 #define TEXTURE_FILE "../images/reflect.rgb"
 
 #define LIT		0x00000001
diff --git a/progs/demos/lodbias.c b/progs/demos/lodbias.c
index a9b5312..a4db22e 100644
--- a/progs/demos/lodbias.c
+++ b/progs/demos/lodbias.c
@@ -34,7 +34,7 @@
 #include <GL/glut.h>
 #include <GL/glext.h>
 
-#include "readtex.c"   /* I know, this is a hack. */
+#include "readtex.h"
 
 #define TEXTURE_FILE "../images/girl.rgb"
 
diff --git a/progs/demos/pixeltex.c b/progs/demos/pixeltex.c
index 1b04444..03e653a 100644
--- a/progs/demos/pixeltex.c
+++ b/progs/demos/pixeltex.c
@@ -56,7 +56,7 @@
 #include <string.h>
 #include <GL/glut.h>
 #include <GL/glext.h>
-#include "readtex.c"   /* I know, this is a hack. */
+#include "readtex.h"
 
 #define TEXTURE_FILE "../images/girl.rgb"
 
diff --git a/progs/demos/teapot.c b/progs/demos/teapot.c
index dd2eadf..67a64f9 100644
--- a/progs/demos/teapot.c
+++ b/progs/demos/teapot.c
@@ -16,7 +16,7 @@
 #endif
 
 #include <GL/glut.h>
-#include "readtex.c"
+#include "readtex.h"
 
 #ifdef XMESA
 #include "GL/xmesa.h"
diff --git a/progs/demos/winpos.c b/progs/demos/winpos.c
index 6250419..2ee1df6 100644
--- a/progs/demos/winpos.c
+++ b/progs/demos/winpos.c
@@ -14,7 +14,7 @@
 #define GL_GLEXT_PROTOTYPES
 #include "GL/glut.h"
 
-#include "readtex.c"  /* a hack, I know */
+#include "readtex.h"
 
 #define IMAGE_FILE "../images/girl.rgb"