From a3bd8bbb38ede20a5e428a1ae6d20b5f9ee632c6 Mon Sep 17 00:00:00 2001 From: Matthias Bolte Date: Mon, 21 Dec 2009 22:21:15 +0100 Subject: [PATCH] Define ATTRIBUTE_SENTINEL for GCC < 4.0 too ATTRIBUTE_SENTINEL was defined for GCC >= 4.0 only, resulting in compile errors when using GCC < 4.0. --- src/internal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/internal.h b/src/internal.h index 09c19eae6a..5ca1fa36ee 100644 --- a/src/internal.h +++ b/src/internal.h @@ -100,6 +100,8 @@ #ifndef ATTRIBUTE_SENTINEL #if __GNUC_PREREQ (4, 0) #define ATTRIBUTE_SENTINEL __attribute__((__sentinel__)) +#else +#define ATTRIBUTE_SENTINEL #endif #endif