summaryrefslogtreecommitdiffstats
path: root/common/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/util.h')
-rw-r--r--common/util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h
index 8940c9355..7a9738d69 100644
--- a/common/util.h
+++ b/common/util.h
@@ -43,6 +43,13 @@
#include "../jnlib/dotlock.h"
#include "../jnlib/utf8conv.h"
+#if __GNUC__ >= 4
+# define GNUPG_GCC_A_SENTINEL(a) __attribute__ ((sentinel(a)))
+#else
+# define GNUPG_GCC_A_SENTINEL(a)
+#endif
+
+
/* We need this type even if we are not using libreadline and or we
did not include libreadline in the current file. */
#ifndef GNUPG_LIBREADLINE_H_INCLUDED