diff options
author | James McCoy <jamessan@jamessan.com> | 2020-09-20 14:57:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-20 14:57:20 -0400 |
commit | 42d13b90fe071ea56e849d8fda25d3b17bd60ce9 (patch) | |
tree | cefd9b610818264013d468742aaae0c1a344ac13 /src/nvim/log.h | |
parent | 9f704c88a57cfb797c21c19672ea6617e9673360 (diff) | |
parent | 461c18edad41a2ab3301f40b4b2f240d9662800d (diff) | |
download | rneovim-42d13b90fe071ea56e849d8fda25d3b17bd60ce9.tar.gz rneovim-42d13b90fe071ea56e849d8fda25d3b17bd60ce9.tar.bz2 rneovim-42d13b90fe071ea56e849d8fda25d3b17bd60ce9.zip |
Merge pull request #12945 from jamessan/has_include-fix
Only use __has_include when it is defined
Diffstat (limited to 'src/nvim/log.h')
-rw-r--r-- | src/nvim/log.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/log.h b/src/nvim/log.h index a6a4c78707..d92b4629ed 100644 --- a/src/nvim/log.h +++ b/src/nvim/log.h @@ -5,6 +5,7 @@ #include <stdbool.h> #include "auto/config.h" +#include "nvim/macros.h" #define DEBUG_LOG_LEVEL 0 #define INFO_LOG_LEVEL 1 @@ -68,7 +69,7 @@ # define LOG_CALLSTACK_TO_FILE(fp) log_callstack_to_file(fp, __func__, __LINE__) #endif -#if defined(__has_include) && __has_include("sanitizer/asan_interface.h") +#if NVIM_HAS_INCLUDE("sanitizer/asan_interface.h") # include "sanitizer/asan_interface.h" #endif |