1 //===-- asan_globals_win.h --------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Interface to the Windows-specific global management code. Separated into a
11 // standalone header to allow inclusion from asan_win_dynamic_runtime_thunk,
12 // which defines symbols that clash with other sanitizer headers.
14 //===----------------------------------------------------------------------===//
16 #ifndef ASAN_GLOBALS_WIN_H
17 #define ASAN_GLOBALS_WIN_H
19 #if !defined(_MSC_VER)
20 #error "this file is Windows-only, and uses MSVC pragmas"
24 #define SANITIZER_SYM_PREFIX
26 #define SANITIZER_SYM_PREFIX "_"
29 // Use this macro to force linking asan_globals_win.cc into the DSO.
30 #define ASAN_LINK_GLOBALS_WIN() \
32 comment(linker, "/include:" SANITIZER_SYM_PREFIX "__asan_dso_reg_hook"))
34 #endif // ASAN_GLOBALS_WIN_H