diff options
| author | Brent Cook <busterb@gmail.com> | 2023-07-05 07:08:32 -0500 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2023-07-05 07:08:32 -0500 |
| commit | 3a757272d028834c00924c08156ca0b2dfbc6a5c (patch) | |
| tree | 8f543a3c8e93bad420290f950255088863f3362e /include/compat/stdint.h | |
| parent | 74be614b0c7e6f0affa4ab0bfb9c2eaab75ea470 (diff) | |
| download | portable-3a757272d028834c00924c08156ca0b2dfbc6a5c.tar.gz portable-3a757272d028834c00924c08156ca0b2dfbc6a5c.tar.bz2 portable-3a757272d028834c00924c08156ca0b2dfbc6a5c.zip | |
move attribute shims
There's not a great place for these, but since they are internal, we can
just move them to the most common header.
Diffstat (limited to 'include/compat/stdint.h')
| -rw-r--r-- | include/compat/stdint.h | 12 |
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 |
