From 76b1ae595072f133b7ec5da065554e3022d268b2 Mon Sep 17 00:00:00 2001 From: Elena Pourmal Date: Tue, 24 Aug 2004 22:41:49 -0500 Subject: [svn-r9153] Purpose: Maintenance/bug fix Description: On OSF1 C++ compilation failed complaining about stdint.h file being missing. Solution: By Binh-Minh's suggestion: include stdint.h file only when __cpluplus is NOT defined. inttypes.h is used by C++ compiler; it is more common than stdint.h Platforms tested: OSF1 (lemieux), Solaris 2.8 (sol), AIX 5.1 (copper) Misc. update: --- src/H5private.h | 2 ++ src/H5public.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/H5private.h b/src/H5private.h index b928d41..d20be17 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -66,9 +66,11 @@ /* * C9x integer types */ +#ifndef __cplusplus #ifdef H5_HAVE_STDINT_H # include #endif +#endif /* * The `struct stat' data type for stat() and fstat(). This is a Posix file diff --git a/src/H5public.h b/src/H5public.h index 8891a8e..77b8bf1 100644 --- a/src/H5public.h +++ b/src/H5public.h @@ -41,9 +41,11 @@ #ifdef H5_STDC_HEADERS # include /*for H5T_NATIVE_CHAR defn in H5Tpublic.h */ #endif +#ifndef __cplusplus #ifdef H5_HAVE_STDINT_H # include /*for C9x types */ #endif +#endif #ifdef H5_HAVE_INTTYPES_H # include /* For uint64_t on some platforms */ #endif -- cgit v0.12