Stephen Hines | 2d1fdb2 | 2014-05-28 23:58:16 -0700 | [diff] [blame] | 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 |
Pirama Arumuga Nainar | 259f706 | 2015-05-06 11:49:53 -0700 | [diff] [blame] | 18 | #include "sanitizer_posix.h" |
Stephen Hines | 2d1fdb2 | 2014-05-28 23:58:16 -0700 | [diff] [blame] | 19 | |
| 20 | namespace __sanitizer { |
| 21 | |
| 22 | enum MacosVersion { |
| 23 | MACOS_VERSION_UNINITIALIZED = 0, |
| 24 | MACOS_VERSION_UNKNOWN, |
| 25 | MACOS_VERSION_LEOPARD, |
| 26 | MACOS_VERSION_SNOW_LEOPARD, |
| 27 | MACOS_VERSION_LION, |
| 28 | MACOS_VERSION_MOUNTAIN_LION, |
Stephen Hines | 6d18623 | 2014-11-26 17:56:19 -0800 | [diff] [blame] | 29 | MACOS_VERSION_MAVERICKS, |
| 30 | MACOS_VERSION_YOSEMITE, |
Stephen Hines | 86277eb | 2015-03-23 12:06:32 -0700 | [diff] [blame] | 31 | MACOS_VERSION_UNKNOWN_NEWER |
Stephen Hines | 2d1fdb2 | 2014-05-28 23:58:16 -0700 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | MacosVersion GetMacosVersion(); |
| 35 | |
| 36 | } // namespace __sanitizer |
| 37 | |
| 38 | #endif // SANITIZER_MAC |
| 39 | #endif // SANITIZER_MAC_H |