[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
This commit is contained in:
Allen Byrne 2010-09-13 10:41:23 -05:00
parent 85481daf07
commit fd7fb6eff2

View File

@ -43,9 +43,13 @@
# include <limits.h> /*for H5T_NATIVE_CHAR defn in H5Tpublic.h */ # include <limits.h> /*for H5T_NATIVE_CHAR defn in H5Tpublic.h */
#endif #endif
#ifndef __cplusplus #ifndef __cplusplus
#ifdef H5_HAVE_STDINT_H # ifdef H5_HAVE_STDINT_H
# include <stdint.h> /*for C9x types */ # include <stdint.h> /*for C9x types */
#endif # endif
#else
# ifdef H5_HAVE_STDINT_H_CXX
# include <stdint.h> /*for C9x types when include from C++ */
# endif
#endif #endif
#ifdef H5_HAVE_INTTYPES_H #ifdef H5_HAVE_INTTYPES_H
# include <inttypes.h> /* For uint64_t on some platforms */ # include <inttypes.h> /* For uint64_t on some platforms */