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.
This commit is contained in:
Matthias Bolte 2009-12-21 22:21:15 +01:00
parent d4c1e5aeed
commit a3bd8bbb38

View File

@ -100,6 +100,8 @@
#ifndef ATTRIBUTE_SENTINEL
#if __GNUC_PREREQ (4, 0)
#define ATTRIBUTE_SENTINEL __attribute__((__sentinel__))
#else
#define ATTRIBUTE_SENTINEL
#endif
#endif