xref: /netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_mac.h (revision 212397c69a103ae7e5eafa8731ddfae671d2dee7)
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 
14 #include "sanitizer_platform.h"
15 #if SANITIZER_MAC
16 
17 namespace __sanitizer {
18 
19 enum MacosVersion {
20   MACOS_VERSION_UNINITIALIZED = 0,
21   MACOS_VERSION_UNKNOWN,
22   MACOS_VERSION_LEOPARD,
23   MACOS_VERSION_SNOW_LEOPARD,
24   MACOS_VERSION_LION,
25   MACOS_VERSION_MOUNTAIN_LION,
26   MACOS_VERSION_MAVERICKS,
27   MACOS_VERSION_YOSEMITE,
28 };
29 
30 MacosVersion GetMacosVersion();
31 
32 }  // namespace __sanitizer
33 
34 #endif  // SANITIZER_MAC
35 #endif  // SANITIZER_MAC_H
36