[sanitizer] Use one #if instead of 3 nested #if after D111185

This commit is contained in:
Fangrui Song 2021-10-08 10:31:57 -07:00
parent f93169226a
commit b3024ac084
1 changed files with 1 additions and 5 deletions

View File

@ -67,13 +67,9 @@
#define NO_EXEC_STACK_DIRECTIVE
#endif
#if defined(__x86_64__) || defined(__i386__)
#if defined(__has_include)
#if __has_include(<cet.h>)
#if (defined(__x86_64__) || defined(__i386__)) && defined(__has_include) && __has_include(<cet.h>)
#include <cet.h>
#endif
#endif
#ifndef _CET_ENDBR
#define _CET_ENDBR
#endif
#endif