]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/sanitizer_common/sanitizer_mac.h
Import compiler-rt trunk r224034.
[FreeBSD/FreeBSD.git] / lib / sanitizer_common / sanitizer_mac.h
1 //===-- sanitizer_mac.h -----------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file is shared between various sanitizers' runtime libraries and
11 // provides definitions for OSX-specific functions.
12 //===----------------------------------------------------------------------===//
13 #ifndef SANITIZER_MAC_H
14 #define SANITIZER_MAC_H
15
16 #include "sanitizer_platform.h"
17 #if SANITIZER_MAC
18
19 namespace __sanitizer {
20
21 enum MacosVersion {
22   MACOS_VERSION_UNINITIALIZED = 0,
23   MACOS_VERSION_UNKNOWN,
24   MACOS_VERSION_LEOPARD,
25   MACOS_VERSION_SNOW_LEOPARD,
26   MACOS_VERSION_LION,
27   MACOS_VERSION_MOUNTAIN_LION,
28   MACOS_VERSION_MAVERICKS,
29   MACOS_VERSION_YOSEMITE,
30 };
31
32 MacosVersion GetMacosVersion();
33
34 }  // namespace __sanitizer
35
36 #endif  // SANITIZER_MAC
37 #endif  // SANITIZER_MAC_H