gnome-lib/libgnomeui/gtklayout.c problem




 Dunno, why I didn't put to .h file :]]

@@ -10,7 +10,11 @@
 #include "gtklayout.h"
 #include <gtk/gtksignal.h>
 #include <gdk/gdkx.h>
-
+#ifndef G_MAXSHORT
+#include <values.h>
+#define G_MAXSHORT MAXSHORT
+#define G_MINSHORT MINSHORT
+#endif

 static void     gtk_layout_class_init         (GtkLayoutClass *class);
 static void     gtk_layout_init               (GtkLayout      *layout);

I made this patch to me (I think it's only error of my system..) When I'm
compiling the gnome-lib, it saing me can't find [G_MAXSHORT,G_MINSHORT]
defines.. It works well with this patch. Without the #ifndef the compiler
says warnings 'G_MAXSHORT redefined', so in other files this is right.
Where could I find the bug?

--
Szabolcs Ban - Shooby Ban - bansz@szif.hu - http://tai2.szif.hu/~bansz/
LSC - Linux Supporting Center - http://lsc.kva.hu/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]