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 | |
| 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')
| -rw-r--r-- | include/compat/stdint.h | 12 | ||||
| -rw-r--r-- | include/compat/sys/types.h | 12 |
2 files changed, 12 insertions, 12 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 |
diff --git a/include/compat/sys/types.h b/include/compat/sys/types.h index 4967843..59664bc 100644 --- a/include/compat/sys/types.h +++ b/include/compat/sys/types.h | |||
| @@ -45,18 +45,6 @@ typedef SSIZE_T ssize_t; | |||
| 45 | 45 | ||
| 46 | #endif | 46 | #endif |
| 47 | 47 | ||
| 48 | #if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__bounded__) | ||
| 49 | # define __bounded__(x, y, z) | ||
| 50 | #endif | ||
| 51 | |||
| 52 | #if !defined(HAVE_ATTRIBUTE__DEAD) && !defined(__dead) | ||
| 53 | #ifdef _MSC_VER | ||
| 54 | #define __dead __declspec(noreturn) | ||
| 55 | #else | ||
| 56 | #define __dead __attribute__((__noreturn__)) | ||
| 57 | #endif | ||
| 58 | #endif | ||
| 59 | |||
| 60 | #ifdef _WIN32 | 48 | #ifdef _WIN32 |
| 61 | #define __warn_references(sym,msg) | 49 | #define __warn_references(sym,msg) |
| 62 | #else | 50 | #else |
