aboutsummaryrefslogtreecommitdiff
path: root/include/compat/sys/cdefs.h
blob: 21ef0311fae68454daaa41229ecf5171aaa96c4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Public domain
 * sys/cdefs.h compatibility shim
 */

#ifndef LIBCRYPTOCOMPAT_SYS_CDEFS_H
#define LIBCRYPTOCOMPAT_SYS_CDEFS_H

#ifdef _WIN32

#define __warn_references(sym,msg)

#else

#include_next <sys/cdefs.h>

#ifndef __warn_references

#if defined(__GNUC__)  && defined (HAS_GNU_WARNING_LONG)
#define __warn_references(sym,msg)          \
  __asm__(".section .gnu.warning." __STRING(sym)  \
         " ; .ascii \"" msg "\" ; .text");
#else
#define __warn_references(sym,msg)
#endif

#endif /* __warn_references */

#endif /* _WIN32 */

#endif /* LIBCRYPTOCOMPAT_SYS_CDEFS_H */