use __has_include() to guard against Hipster or old Solaris

This commit is contained in:
Dima Pasechnik 2018-02-07 22:23:54 +00:00
parent 4fb53e3f8e
commit 59984d4aa3

View File

@ -29,8 +29,12 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#endif
#if defined(sun) || defined(__sun)
#if defined(__has_include) /* should work on gcc 5.x or better, or on clang */
#if __has_include(<stdint.h>)
#include <stdint.h>
#endif
#endif
#endif
#if defined (__cplusplus)