aboutsummaryrefslogtreecommitdiff
path: root/include/compat/stdint.h
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2023-07-05 08:00:57 -0500
committerBrent Cook <busterb@gmail.com>2023-07-05 08:00:57 -0500
commit0c3849a0550ed9c6f242e2da09bb16a3910d754f (patch)
treeaf090adf068da993c7f56c9b54a0bef0d5181b92 /include/compat/stdint.h
parent642ead359ba9bbeddac2bf0dc593282d0c562092 (diff)
parent3a757272d028834c00924c08156ca0b2dfbc6a5c (diff)
downloadportable-0c3849a0550ed9c6f242e2da09bb16a3910d754f.tar.gz
portable-0c3849a0550ed9c6f242e2da09bb16a3910d754f.tar.bz2
portable-0c3849a0550ed9c6f242e2da09bb16a3910d754f.zip
Land #880, move function attribute shims
Diffstat (limited to 'include/compat/stdint.h')
-rw-r--r--include/compat/stdint.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/compat/stdint.h b/include/compat/stdint.h
index 2829151..dbe3539 100644
--- a/include/compat/stdint.h
+++ b/include/compat/stdint.h
@@ -16,4 +16,16 @@
16#include <limits.h> 16#include <limits.h>
17#endif 17#endif
18 18
19#if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__bounded__)
20# define __bounded__(x, y, z)
21#endif
22
23#if !defined(HAVE_ATTRIBUTE__DEAD) && !defined(__dead)
24#ifdef _MSC_VER
25#define __dead __declspec(noreturn)
26#else
27#define __dead __attribute__((__noreturn__))
28#endif
29#endif
30
19#endif 31#endif