]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Define ATTRIBUTE_SENTINEL for GCC < 4.0 too
authorMatthias Bolte <matthias.bolte@googlemail.com>
Mon, 21 Dec 2009 21:21:15 +0000 (22:21 +0100)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 22 Dec 2009 12:04:50 +0000 (13:04 +0100)
ATTRIBUTE_SENTINEL was defined for GCC >= 4.0 only, resulting in
compile errors when using GCC < 4.0.

src/internal.h

index 09c19eae6a93e38a3bfbd74d43ba9a9f1f83a9c9..5ca1fa36eea0adb30e4a705cdc688c47a7560c8d 100644 (file)
 #ifndef ATTRIBUTE_SENTINEL
 #if __GNUC_PREREQ (4, 0)
 #define ATTRIBUTE_SENTINEL __attribute__((__sentinel__))
+#else
+#define ATTRIBUTE_SENTINEL
 #endif
 #endif