mirror of
https://github.com/BLAKE3-team/BLAKE3
synced 2024-05-14 04:16:13 +02:00
support compilers without __has_include
This commit is contained in:
parent
e83cbbb8f5
commit
b01784a057
|
@ -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>
|
#include <cet.h>
|
||||||
#else
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !defined(_CET_ENDBR)
|
||||||
#define _CET_ENDBR
|
#define _CET_ENDBR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -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>
|
#include <cet.h>
|
||||||
#else
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !defined(_CET_ENDBR)
|
||||||
#define _CET_ENDBR
|
#define _CET_ENDBR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -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>
|
#include <cet.h>
|
||||||
#else
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !defined(_CET_ENDBR)
|
||||||
#define _CET_ENDBR
|
#define _CET_ENDBR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue