From: dj Date: Mon, 19 Oct 2009 18:14:23 +0000 (+0000) Subject: merge from gcc X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9bced6347160425d3635534cad19f152584ce09a;p=pf3gnuchains%2Fpf3gnuchains3x.git merge from gcc --- diff --git a/include/ChangeLog b/include/ChangeLog index 5bc501a54d..fd5a66f40c 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2009-10-19 Rafael Avila de Espindola + + PR40790 + * plugin-api.h: Don't include stdint.h unconditionally. + 2009-10-15 Jakub Jelinek * include/dwarf2.h (DW_LANG_Python): Add comment that it is diff --git a/include/plugin-api.h b/include/plugin-api.h index a026e7a004..572621fc37 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 +#elif defined(HAVE_INTTYPES_H) +#include +#endif #include +#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"