1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-04-28 17:55:08 +02:00

support compilers without __has_include

This commit is contained in:
Samuel Neves 2020-07-30 00:03:37 +01:00
parent e83cbbb8f5
commit b01784a057
3 changed files with 18 additions and 6 deletions

View File

@ -1,6 +1,10 @@
#if defined(__ELF__) && defined(__CET__) && __has_include(<cet.h>)
#if defined(__ELF__) && defined(__CET__) && defined(__has_include)
#if __has_include(<cet.h>)
#include <cet.h>
#else
#endif
#endif
#if !defined(_CET_ENDBR)
#define _CET_ENDBR
#endif

View File

@ -1,6 +1,10 @@
#if defined(__ELF__) && defined(__CET__) && __has_include(<cet.h>)
#if defined(__ELF__) && defined(__CET__) && defined(__has_include)
#if __has_include(<cet.h>)
#include <cet.h>
#else
#endif
#endif
#if !defined(_CET_ENDBR)
#define _CET_ENDBR
#endif

View File

@ -1,6 +1,10 @@
#if defined(__ELF__) && defined(__CET__) && __has_include(<cet.h>)
#if defined(__ELF__) && defined(__CET__) && defined(__has_include)
#if __has_include(<cet.h>)
#include <cet.h>
#else
#endif
#endif
#if !defined(_CET_ENDBR)
#define _CET_ENDBR
#endif