Embree_convenience.h 566 B

12345678910111213141516171819202122232425262728
  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 <common/ray.h>
  19. #ifdef __GNUC__
  20. # if __GNUC__ >= 4
  21. # if __GNUC_MINOR__ >= 6
  22. # pragma GCC diagnostic pop
  23. # endif
  24. # endif
  25. #endif
  26. #endif