compiler_extra.hpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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 (__cplusplus >= 201103L)
  16. #undef ARMA_USE_CXX11
  17. #define ARMA_USE_CXX11
  18. #endif
  19. // MS really can't get its proverbial shit together
  20. #if (defined(_MSVC_LANG) && (_MSVC_LANG >= 201402L))
  21. #undef ARMA_USE_CXX11
  22. #define ARMA_USE_CXX11
  23. #undef ARMA_DONT_PRINT_CXX11_WARNING
  24. #define ARMA_DONT_PRINT_CXX11_WARNING
  25. #endif
  26. #if (defined(_OPENMP) && (_OPENMP >= 201107))
  27. #undef ARMA_USE_OPENMP
  28. #define ARMA_USE_OPENMP
  29. #endif