diff options
author | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-01 12:36:07 +0000 |
---|---|---|
committer | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-01 12:36:07 +0000 |
commit | 78d986dde780781b9871907aa66a578edf61c110 (patch) | |
tree | ab511afe23f236b67be82d22ce429cf911770592 /libffi/testsuite | |
parent | f2ed59305e28a48429acfad5fc9af544af10ba7e (diff) | |
download | gcc-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/testsuite')
-rw-r--r-- | libffi/testsuite/libffi.call/ffitest.h | 10 | ||||
-rw-r--r-- | libffi/testsuite/libffi.special/unwindtest.cc | 7 |
2 files changed, 15 insertions, 2 deletions
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__, |