bug-gv
[Top][All Lists]
Advanced

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

Re: [bug-gv] [bug #13434] gv not compile with Sun WorkShop 6 update 2


From: Bernhard R. Link
Subject: Re: [bug-gv] [bug #13434] gv not compile with Sun WorkShop 6 update 2
Date: Sun, 8 Jun 2008 15:08:08 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

* Markus Steinborn <address@hidden> [080607 22:57]:
> I have eliminated warnings from "-std?=c89 -pedantic". Note that for an
> ISO-C89 Compiler, you must supply "-Dintptr_t=long" in yout CFLAGS at
> configure time, where you replace long by the type that has the same size as a
> pointer. If there is none, use a bigger one and get some warnings while
> compiling.

@@ -40,7 +40,11 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>
-#include <inttypes.h>
+
+#include "ac_config.h"
+#ifdef HAVE_INTTYPES_H
+  #include <inttypes.h>
+#endif

Please note that ideally ac_config.h should be before ALL instances of
system headers. For example with glibc any flags only take effect when
set before the first time features.h is included, which is done by any
glibc header. Currently there are none, but things like AC_SYS_LARGEFILE
in configure.ac would only take effect in files where ac_config.h is
included before all the headers (at least with glibc).

Hochachtungsvoll,
        Bernhard R. Link

P.S: A pity it is gplv3+ now. I liked having the option of a copyleft
license.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]