CleanupWindows.h 581 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. /// @file
  6. /// Clean the global namespace from windows.h crap
  7. #include <AnKi/Config.h>
  8. #if ANKI_OS_WINDOWS
  9. # ifdef near
  10. # undef near
  11. # endif
  12. # ifdef far
  13. # undef far
  14. # endif
  15. # ifdef FAR
  16. # undef FAR
  17. # endif
  18. # ifdef ERROR
  19. # undef ERROR
  20. # endif
  21. # ifdef DELETE
  22. # undef DELETE
  23. # endif
  24. # ifdef OUT
  25. # undef OUT
  26. # endif
  27. # ifdef min
  28. # undef min
  29. # endif
  30. # ifdef max
  31. # undef max
  32. # endif
  33. #endif