Commit 3702031b authored by David Partyka's avatar David Partyka Committed by Brad King
Browse files

vtkhdf5: include stdint.h when including hdf5.h from a c++ source.

Amazingly VS10 has stdint.h but we aren't including it if __cplusplus is
defined. Change logic to include stdint.h if H5_HAVE_STDINT_H_CXX is
defined.
parent 7a7064d5
......@@ -317,6 +317,9 @@
/* Define to 1 if you have the <stdint.h> header file. */
#cmakedefine H5_HAVE_STDINT_H @H5_HAVE_STDINT_H@
/* Define to 1 if you have the <stdint.h> header file for Cplusplus. */
#cmakedefine H5_HAVE_STDINT_H_CXX @H5_HAVE_STDINT_H_CXX@
/* Define to 1 if you have the <stdlib.h> header file. */
#cmakedefine H5_HAVE_STDLIB_H @H5_HAVE_STDLIB_H@
......
......@@ -43,9 +43,13 @@
# include <limits.h> /*for H5T_NATIVE_CHAR defn in H5Tpublic.h */
#endif
#ifndef __cplusplus
#ifdef H5_HAVE_STDINT_H
# ifdef H5_HAVE_STDINT_H
# 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
#ifdef H5_HAVE_INTTYPES_H
# include <inttypes.h> /* For uint64_t on some platforms */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment