Re: building imlib under Solaris 2.6



C Wayne Huling <wayne@smb.larc.nasa.gov> writes:

> I am having problems with imlib-1.9.4 under Solairs 2.6 using
> gcc-2.8.1.  The problem is:

locale.h need to be included before libintl.h for libintl.h to parse.

--- utils/imlib_config.c~       Fri Feb 12 08:08:24 1999
+++ utils/imlib_config.c        Wed Mar 17 21:40:13 1999
@@ -2,6 +2,7 @@
 #ifndef GNOMELOCALEDIR
 #define GNOMELOCALEDIR "/usr/share/locale"
 #endif
+#include <locale.h>
 #ifdef ENABLE_NLS
 #    include <libintl.h>
 #    define _(String) gettext (String)
@@ -32,7 +33,6 @@
 #include <stdio.h>
 #include <unistd.h>
 #include <stdlib.h>
-#include <locale.h>
 
 GtkWidget          *note = NULL;
 GtkWidget          *pg1 = NULL;



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