Embree_convenience.h 600 B

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