Embree_convenience.h 1009 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. #ifndef IGL_EMBREE_EMBREE_CONVENIENCE_H
  9. #define IGL_EMBREE_EMBREE_CONVENIENCE_H
  10. #undef interface
  11. #undef near
  12. #undef far
  13. // Why are these in quotes? isn't that a bad idea?
  14. #ifdef __GNUC__
  15. // This is how it should be done
  16. # if __GNUC__ >= 4
  17. # if __GNUC_MINOR__ >= 6
  18. # pragma GCC diagnostic push
  19. # pragma GCC diagnostic ignored "-Weffc++"
  20. # endif
  21. # endif
  22. // This is a hack
  23. # pragma GCC system_header
  24. #endif
  25. #include <embree/include/embree.h>
  26. #include <embree/include/intersector1.h>
  27. #include <embree/common/ray.h>
  28. #ifdef __GNUC__
  29. # if __GNUC__ >= 4
  30. # if __GNUC_MINOR__ >= 6
  31. # pragma GCC diagnostic pop
  32. # endif
  33. # endif
  34. #endif
  35. #endif