[Pcre-svn] [1160] code/trunk/pcre_internal.h: Fix -Wundef wa…

Startseite
Nachricht löschen
Autor: Subversion repository
Datum:  
To: pcre-svn
Betreff: [Pcre-svn] [1160] code/trunk/pcre_internal.h: Fix -Wundef warnings when stdint. h is not available
Revision: 1160
          http://vcs.pcre.org/viewvc?view=rev&revision=1160
Author:   chpe
Date:     2012-10-22 23:05:03 +0100 (Mon, 22 Oct 2012)


Log Message:
-----------
Fix -Wundef warnings when stdint.h is not available

Pointed out by Daniel Richard G. on the mailing list.

Modified Paths:
--------------
    code/trunk/pcre_internal.h


Modified: code/trunk/pcre_internal.h
===================================================================
--- code/trunk/pcre_internal.h    2012-10-22 19:58:25 UTC (rev 1159)
+++ code/trunk/pcre_internal.h    2012-10-22 22:05:03 UTC (rev 1160)
@@ -221,9 +221,9 @@
 have stdint.h (e.g. Solaris) may have inttypes.h. The macro int64_t may be set
 by "configure". */


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