summaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authorgreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-01 12:36:07 +0000
committergreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-01 12:36:07 +0000
commit78d986dde780781b9871907aa66a578edf61c110 (patch)
treeab511afe23f236b67be82d22ce429cf911770592 /libffi
parentf2ed59305e28a48429acfad5fc9af544af10ba7e (diff)
downloadgcc-78d986dde780781b9871907aa66a578edf61c110.tar.gz
Fixes for HPUX.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155550 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi')
-rw-r--r--libffi/ChangeLog6
-rw-r--r--libffi/testsuite/libffi.call/ffitest.h10
-rw-r--r--libffi/testsuite/libffi.special/unwindtest.cc7
3 files changed, 21 insertions, 2 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog
index 0834d035cd4..86cf4147998 100644
--- a/libffi/ChangeLog
+++ b/libffi/ChangeLog
@@ -1,5 +1,11 @@
2009-12-26 Andreas Tobler <a.tobler@schweiz.org>
+ * testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
+ and inttypes.h.
+ * testsuite/libffi.special/unwindtest.cc: Ditto.
+
+2009-12-26 Andreas Tobler <a.tobler@schweiz.org>
+
* configure.ac: Add amd64-*-openbsd*.
* configure: Rebuilt.
* testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
diff --git a/libffi/testsuite/libffi.call/ffitest.h b/libffi/testsuite/libffi.call/ffitest.h
index a54b2146f9c..7b1c5efa5ce 100644
--- a/libffi/testsuite/libffi.call/ffitest.h
+++ b/libffi/testsuite/libffi.call/ffitest.h
@@ -2,11 +2,17 @@
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
-#include <stdint.h>
-#include <inttypes.h>
#include <ffi.h>
#include "fficonfig.h"
+#if defined HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
+#if defined HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
#define MAX_ARGS 256
#define CHECK(x) !(x) ? abort() : 0
diff --git a/libffi/testsuite/libffi.special/unwindtest.cc b/libffi/testsuite/libffi.special/unwindtest.cc
index 723871626d1..d7ffd4aa214 100644
--- a/libffi/testsuite/libffi.special/unwindtest.cc
+++ b/libffi/testsuite/libffi.special/unwindtest.cc
@@ -6,7 +6,14 @@
/* { dg-do run } */
#include "ffitestcxx.h"
+
+#if defined HAVE_STDINT_H
#include <stdint.h>
+#endif
+
+#if defined HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
void
closure_test_fn(ffi_cif* cif __UNUSED__, void* resp __UNUSED__,