Embree_convenience.h 649 B

123456789101112131415161718192021222324252627282930
  1. #ifndef IGL_EMBREE_CONVENIENCE_H
  2. #define IGL_EMBREE_CONVENIENCE_H
  3. #undef interface
  4. #undef near
  5. #undef far
  6. // Why are these in quotes? isn't that a bad idea?
  7. #ifdef __GNUC__
  8. // This is how it should be done
  9. # if __GNUC__ >= 4
  10. # if __GNUC_MINOR__ >= 6
  11. # pragma GCC diagnostic push
  12. # pragma GCC diagnostic ignored "-Weffc++"
  13. # endif
  14. # endif
  15. // This is a hack
  16. # pragma GCC system_header
  17. #endif
  18. #include <embree/include/embree.h>
  19. #include <embree/include/intersector1.h>
  20. #include <embree/common/ray.h>
  21. #ifdef __GNUC__
  22. # if __GNUC__ >= 4
  23. # if __GNUC_MINOR__ >= 6
  24. # pragma GCC diagnostic pop
  25. # endif
  26. # endif
  27. #endif
  28. #endif