sanitizer_mac.h 975 B

123456789101112131415161718192021222324252627282930313233343536
  1. //===-- sanitizer_mac.h -----------------------------------------*- C++ -*-===//
  2. //
  3. // This file is distributed under the University of Illinois Open Source
  4. // License. See LICENSE.TXT for details.
  5. //
  6. //===----------------------------------------------------------------------===//
  7. //
  8. // This file is shared between various sanitizers' runtime libraries and
  9. // provides definitions for OSX-specific functions.
  10. //===----------------------------------------------------------------------===//
  11. #ifndef SANITIZER_MAC_H
  12. #define SANITIZER_MAC_H
  13. #include "sanitizer_platform.h"
  14. #if SANITIZER_MAC
  15. namespace __sanitizer {
  16. enum MacosVersion {
  17. MACOS_VERSION_UNINITIALIZED = 0,
  18. MACOS_VERSION_UNKNOWN,
  19. MACOS_VERSION_LEOPARD,
  20. MACOS_VERSION_SNOW_LEOPARD,
  21. MACOS_VERSION_LION,
  22. MACOS_VERSION_MOUNTAIN_LION,
  23. MACOS_VERSION_MAVERICKS,
  24. MACOS_VERSION_YOSEMITE,
  25. };
  26. MacosVersion GetMacosVersion();
  27. } // namespace __sanitizer
  28. #endif // SANITIZER_MAC
  29. #endif // SANITIZER_MAC_H