diff options
Diffstat (limited to 'include/al')
| -rw-r--r-- | include/al/lib.h | 2 | ||||
| -rw-r--r-- | include/al/macros.h | 13 |
2 files changed, 8 insertions, 7 deletions
diff --git a/include/al/lib.h b/include/al/lib.h index cb5101a..60960cc 100644 --- a/include/al/lib.h +++ b/include/al/lib.h @@ -1,8 +1,8 @@ #ifndef _AL_LIB_H #define _AL_LIB_H -#include "types.h" #include "macros.h" +#include "types.h" // Piggyback off c89atomic for pointer size macros. #include <c89atomic.h> diff --git a/include/al/macros.h b/include/al/macros.h index 3932c37..0f116dc 100644 --- a/include/al/macros.h +++ b/include/al/macros.h @@ -74,7 +74,8 @@ #define GB(n) ((n) << 30) #define TB(n) (((u64)n) << 40) -#if defined __counted_by || defined __sized_by +//#if defined __counted_by || defined __sized_by +#if defined __sized_by #error "Conflicting definitions for common attributes" #endif @@ -85,11 +86,11 @@ #define AL_HAS_ATTRIBUTE(x) 0 #endif -#if AL_HAS_ATTRIBUTE(__counted_by__) -#define __counted_by(member) __attribute__((__counted_by__(member))) -#else -#define __counted_by(member) -#endif +//#if AL_HAS_ATTRIBUTE(__counted_by__) +//#define __counted_by(member) __attribute__((__counted_by__(member))) +//#else +//#define __counted_by(member) +//#endif #if AL_HAS_ATTRIBUTE(__sized_by__) #define __sized_by(member) __attribute__((__sized_by__(member))) |