]> granicus.if.org Git - graphviz/commitdiff
Fix warnings;
authorerg <devnull@localhost>
Tue, 4 Nov 2008 16:58:53 +0000 (16:58 +0000)
committererg <devnull@localhost>
Tue, 4 Nov 2008 16:58:53 +0000 (16:58 +0000)
fix #ifndef wrapper in .h file;
use unsigned int

lib/glcomp/glcomptexture.c
lib/glcomp/glcomptexture.h

index cbd147a080f516c2532ab6483138b57b9f835b78..6a7b5ccb55f69044186dd549e15f48fae6c6bb92 100644 (file)
@@ -14,6 +14,9 @@
 **********************************************************/
 
 #include "glcomptexture.h"
+#ifndef _WIN32
+#include "stdlib.h"
+#endif
 
 glCompTexture *glCompCreateTextureFromRaw(char *filename, int width,
                                          int height, int wrap)
index 25bbd3d6aa7b8050816302c109cee2c771ac7823..d2b76368ab6739f5de51495cf45c17dae394bc87 100644 (file)
 /*Open GL texture handling and storing mechanism
   includes glPanel,glCompButton,glCompCustomButton,clCompLabel,glCompStyle
 */
+
+#ifndef GLCOMPTEXTURE_H
+#define GLCOMPTEXTURE_H
+
 #ifdef _WIN32
 #include "windows.h"
 #endif
 #include <GL/gl.h>
 #include <GL/glu.h>
 
-#ifndef GLCOMPTEXTURE_H
-#define GLCOMPTEXTURE_H
 typedef struct {
-    int id;
+    unsigned int id;
     float w, h;
 } glCompTexture;