summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2004-08-25 03:41:49 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2004-08-25 03:41:49 (GMT)
commit76b1ae595072f133b7ec5da065554e3022d268b2 (patch)
tree3ddc7bb9f9a7d122f0b0d777a50dd8d5a772b870 /src
parent2f6b3eadf763b2e29d277904a9d9d2b35ab61023 (diff)
downloadhdf5-76b1ae595072f133b7ec5da065554e3022d268b2.zip
hdf5-76b1ae595072f133b7ec5da065554e3022d268b2.tar.gz
hdf5-76b1ae595072f133b7ec5da065554e3022d268b2.tar.bz2
[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:
Diffstat (limited to 'src')
-rw-r--r--src/H5private.h2
-rw-r--r--src/H5public.h2
2 files changed, 4 insertions, 0 deletions
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 <stdint.h>
#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 <limits.h> /*for H5T_NATIVE_CHAR defn in H5Tpublic.h */
#endif
+#ifndef __cplusplus
#ifdef H5_HAVE_STDINT_H
# include <stdint.h> /*for C9x types */
#endif
+#endif
#ifdef H5_HAVE_INTTYPES_H
# include <inttypes.h> /* For uint64_t on some platforms */
#endif