diff options
author | Rafael Espindola <espindola@gcc.gnu.org> | 2009-10-19 15:11:35 +0000 |
---|---|---|
committer | Rafael Espindola <espindola@gcc.gnu.org> | 2009-10-19 15:11:35 +0000 |
commit | 21750c78c4afdc2ca2baa639bfc19365a8487e22 (patch) | |
tree | 60330d895ace37454866261b664568c0eee97403 /include | |
parent | d23a77342cab5085c3ad62185a63119d29a73b36 (diff) | |
download | gcc-21750c78c4afdc2ca2baa639bfc19365a8487e22.zip gcc-21750c78c4afdc2ca2baa639bfc19365a8487e22.tar.gz gcc-21750c78c4afdc2ca2baa639bfc19365a8487e22.tar.bz2 |
re PR lto/40790 (plugin-api.h unconditionally includes stdint.h)
include/
2009-10-09 Rafael Avila de Espindola <espindola@google.com>
PR40790
* plugin-api.h: Don't include stdint.h unconditionally.
lto-plugin/
2009-10-09 Rafael Avila de Espindola <espindola@google.com>
PR40790
* configure: Regenerate.
* configure.ac: Add AC_TYPE_UINT64_T.
From-SVN: r152976
Diffstat (limited to 'include')
-rw-r--r-- | include/plugin-api.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/plugin-api.h b/include/plugin-api.h index a026e7a..572621f 100644 --- a/include/plugin-api.h +++ b/include/plugin-api.h @@ -26,8 +26,16 @@ #ifndef PLUGIN_API_H #define PLUGIN_API_H +#ifdef HAVE_STDINT_H #include <stdint.h> +#elif defined(HAVE_INTTYPES_H) +#include <inttypes.h> +#endif #include <sys/types.h> +#if !defined(HAVE_STDINT_H) && !defined(HAVE_INTTYPES_H) && \ + !defined(UINT64_MAX) && !defined(uint64_t) +#error can not find uint64_t type +#endif #ifdef __cplusplus extern "C" |