From fd7fb6eff2eb979a331277d21ae3d5adfb30dfd8 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Mon, 13 Sep 2010 10:41:23 -0500 Subject: [svn-r19374] [BZ1938] - VS2010 on windows requires stdint.h to compile C++ library. CMake will check if c++ compiler supports stdint.h and set the H5_HAVE_STDINT_H_CXX define. Tested: windows and local linux --- src/H5public.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/H5public.h b/src/H5public.h index 6c0b264..df2ce6f 100644 --- a/src/H5public.h +++ b/src/H5public.h @@ -43,9 +43,13 @@ # include /*for H5T_NATIVE_CHAR defn in H5Tpublic.h */ #endif #ifndef __cplusplus -#ifdef H5_HAVE_STDINT_H +# ifdef H5_HAVE_STDINT_H # include /*for C9x types */ -#endif +# endif +#else +# ifdef H5_HAVE_STDINT_H_CXX +# include /*for C9x types when include from C++ */ +# endif #endif #ifdef H5_HAVE_INTTYPES_H # include /* For uint64_t on some platforms */ -- cgit v0.12