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.
This commit is contained in:
Brent Cook 2023-07-05 07:08:32 -05:00
parent 74be614b0c
commit 3a757272d0
2 changed files with 12 additions and 12 deletions

View File

@ -16,4 +16,16 @@
#include <limits.h>
#endif
#if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__bounded__)
# define __bounded__(x, y, z)
#endif
#if !defined(HAVE_ATTRIBUTE__DEAD) && !defined(__dead)
#ifdef _MSC_VER
#define __dead __declspec(noreturn)
#else
#define __dead __attribute__((__noreturn__))
#endif
#endif
#endif

View File

@ -45,18 +45,6 @@ typedef SSIZE_T ssize_t;
#endif
#if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__bounded__)
# define __bounded__(x, y, z)
#endif
#if !defined(HAVE_ATTRIBUTE__DEAD) && !defined(__dead)
#ifdef _MSC_VER
#define __dead __declspec(noreturn)
#else
#define __dead __attribute__((__noreturn__))
#endif
#endif
#ifdef _WIN32
#define __warn_references(sym,msg)
#else