summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-06-25 18:08:03 +0200
committerRichard Braun <rbraun@sceen.net>2017-06-25 18:18:53 +0200
commitb5139fefaba82940d44211cbe4682e15d335497a (patch)
tree30eb86bdef087dffedccb6c739607f2d1bc522f5
parentcae4cc663a0569dc8cd62a37f3ff21ca2286ee3e (diff)
macros: remove functionality made standard in C11
-rw-r--r--macros.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/macros.h b/macros.h
index 7064617..1b56040 100644
--- a/macros.h
+++ b/macros.h
@@ -61,24 +61,17 @@
#define structof(ptr, type, member) \
((type *)((char *)(ptr) - offsetof(type, member)))
-#define alignof(x) __alignof__(x)
-
#define likely(expr) __builtin_expect(!!(expr), 1)
#define unlikely(expr) __builtin_expect(!!(expr), 0)
#define barrier() asm volatile("" : : : "memory")
-#define __noreturn __attribute__((noreturn))
#define __alias(x) __attribute__((alias(x)))
/*
* The following macros may be provided by the C environment.
*/
-#ifndef __aligned
-#define __aligned(x) __attribute__((aligned(x)))
-#endif
-
#ifndef __always_inline
#define __always_inline inline __attribute__((always_inline))
#endif