summaryrefslogtreecommitdiffstats
path: root/babeld/babeld.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2021-02-21 05:48:48 +0100
committerDavid Lamparter <equinox@diac24.net>2021-03-17 06:18:17 +0100
commit15c05f1edf079bc03b277e44426a8af8616bb10b (patch)
tree07eba7a6ffc9e4c1caaabbb572632bd921082dc6 /babeld/babeld.h
parentsnmp: change -std=gnu99 to -std=gnu11 (diff)
downloadfrr-15c05f1edf079bc03b277e44426a8af8616bb10b.tar.xz
frr-15c05f1edf079bc03b277e44426a8af8616bb10b.zip
*: require ISO C11 (or C++11)
It's 2021... time to drop some 10yo compat stuff. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'babeld/babeld.h')
-rw-r--r--babeld/babeld.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/babeld/babeld.h b/babeld/babeld.h
index 752cc8620..4487aae99 100644
--- a/babeld/babeld.h
+++ b/babeld/babeld.h
@@ -41,20 +41,6 @@ THE SOFTWARE.
#define MAX(x,y) ((x)<=(y)?(y):(x))
#define MIN(x,y) ((x)<=(y)?(x):(y))
-#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
-/* nothing */
-#elif defined(__GNUC__)
-#define inline __inline
-#if (__GNUC__ >= 3)
-#define restrict __restrict
-#else
-#define restrict /**/
-#endif
-#else
-#define inline /**/
-#define restrict /**/
-#endif
-
#if defined(__GNUC__) && (__GNUC__ >= 3)
#define ATTRIBUTE(x) __attribute__ (x)
#define LIKELY(_x) __builtin_expect(!!(_x), 1)