Update LibreSSL from version 2.4.3 => 2.4.4
[dragonfly.git] / crypto / libressl / include / compat / sys / cdefs.h
1 /*
2  * Public domain
3  * sys/cdefs.h compatibility shim
4  */
5
6 #ifndef LIBCRYPTOCOMPAT_SYS_CDEFS_H
7 #define LIBCRYPTOCOMPAT_SYS_CDEFS_H
8
9 #ifdef _WIN32
10
11 #define __warn_references(sym,msg)
12
13 #else
14
15 #include_next <sys/cdefs.h>
16
17 #ifndef __warn_references
18
19 #if defined(__GNUC__)  && defined (HAS_GNU_WARNING_LONG)
20 #define __warn_references(sym,msg)          \
21   __asm__(".section .gnu.warning." __STRING(sym)  \
22          " ; .ascii \"" msg "\" ; .text");
23 #else
24 #define __warn_references(sym,msg)
25 #endif
26
27 #endif /* __warn_references */
28
29 #endif /* _WIN32 */
30
31 #endif /* LIBCRYPTOCOMPAT_SYS_CDEFS_H */