include_hdf5.hpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
  2. // Copyright 2008-2016 National ICT Australia (NICTA)
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // ------------------------------------------------------------------------
  15. #if defined(ARMA_USE_HDF5)
  16. #undef H5_USE_110_API
  17. #define H5_USE_110_API
  18. #if !defined(ARMA_HDF5_INCLUDE_DIR)
  19. #include <hdf5.h>
  20. #else
  21. #define ARMA_STR1(x) x
  22. #define ARMA_STR2(x) ARMA_STR1(x)
  23. #define ARMA_HDF5_HEADER ARMA_STR2(ARMA_HDF5_INCLUDE_DIR)ARMA_STR2(hdf5.h)
  24. #include ARMA_INCFILE_WRAP(ARMA_HDF5_HEADER)
  25. #undef ARMA_STR1
  26. #undef ARMA_STR2
  27. #undef ARMA_HDF5_HEADER
  28. #endif
  29. #if defined(H5_USE_16_API_DEFAULT) || defined(H5_USE_16_API)
  30. #pragma message ("WARNING: disabling use of HDF5 due to its incompatible configuration")
  31. #undef ARMA_USE_HDF5
  32. #undef ARMA_USE_HDF5_ALT
  33. #endif
  34. #endif