[pcre-dev] [Bug 951] On systems requiring inttypes.h the inc…

Page principale
Supprimer ce message
Auteur: Martin Jerabek
Date:  
À: pcre-dev
Sujet: [pcre-dev] [Bug 951] On systems requiring inttypes.h the include is missing in pcre_compile.c
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=951

Martin Jerabek <martin.jerabek@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |martin.jerabek@isis-
                   |                            |papyrus.com





--- Comment #2 from Martin Jerabek <martin.jerabek@???> 2010-02-17 15:05:01 ---
We had exactly this problem on Solaris 8, and were able to fix it by simply
including inttypes.h if it is available. This should not cause problems for
other platforms which do not need it. At least Linux, AIX, and HP-UX compile
normally.

The modification we did in pcre_internal.h:

--- pcre_internal.h     8 Feb 2010 11:06:00 -0000       1.1.2.7
+++ pcre_internal.h     17 Feb 2010 14:09:26 -0000      1.1.2.8
@@ -193,6 +193,8 @@


#if HAVE_STDINT_H
#include <stdint.h>
+#elif HAVE_INTTYPES_H
+#include <inttypes.h>
#endif

#if defined INT64_MAX || defined int64_t


It would be great if this fix could be included in subsequent versions.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email