diff options
author | Brent Cook <bcook@openbsd.org> | 2016-09-14 23:40:10 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2016-09-14 23:40:31 -0500 |
commit | b7ba692f72f232602efb3e720ab0510406bae69c (patch) | |
tree | 3d795ce11f36230feb56caaddaa13db2a7f3487a /include/compat | |
parent | df207699777fe7a671df25998808dac473903678 (diff) | |
download | portable-b7ba692f72f232602efb3e720ab0510406bae69c.tar.gz portable-b7ba692f72f232602efb3e720ab0510406bae69c.tar.bz2 portable-b7ba692f72f232602efb3e720ab0510406bae69c.zip |
ensure that __STRING works
Diffstat (limited to 'include/compat')
-rw-r--r-- | include/compat/sys/types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/compat/sys/types.h b/include/compat/sys/types.h index 2065f5f..dcd8067 100644 --- a/include/compat/sys/types.h +++ b/include/compat/sys/types.h | |||
@@ -49,6 +49,11 @@ typedef SSIZE_T ssize_t; | |||
49 | #else | 49 | #else |
50 | 50 | ||
51 | #ifndef __warn_references | 51 | #ifndef __warn_references |
52 | |||
53 | #ifndef __STRING | ||
54 | #define __STRING(x) #x | ||
55 | #endif | ||
56 | |||
52 | #if defined(__GNUC__) && defined (HAS_GNU_WARNING_LONG) | 57 | #if defined(__GNUC__) && defined (HAS_GNU_WARNING_LONG) |
53 | #define __warn_references(sym,msg) \ | 58 | #define __warn_references(sym,msg) \ |
54 | __asm__(".section .gnu.warning." __STRING(sym) \ | 59 | __asm__(".section .gnu.warning." __STRING(sym) \ |