[vte] lib: Neuter _VTE_GNUC_NONNULL when compiling libvte
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] lib: Neuter _VTE_GNUC_NONNULL when compiling libvte
- Date: Sat, 20 Feb 2016 11:17:42 +0000 (UTC)
commit b2ee030f02b49ce44a3999d58d1bd3d486a38bd1
Author: Christian Persch <chpe gnome org>
Date: Sat Feb 20 12:17:28 2016 +0100
lib: Neuter _VTE_GNUC_NONNULL when compiling libvte
src/vte/vtemacros.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/vte/vtemacros.h b/src/vte/vtemacros.h
index bed104d..3f8acf5 100644
--- a/src/vte/vtemacros.h
+++ b/src/vte/vtemacros.h
@@ -29,11 +29,15 @@
#define _VTE_GNUC_PACKED
#endif /* !__GNUC__ */
+#ifdef VTE_COMPILATION
+#define _VTE_GNUC_NONNULL(position)
+#else
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 2)
#define _VTE_GNUC_NONNULL(position) __attribute__((__nonnull__(position)))
#else
#define _VTE_GNUC_NONNULL(position)
#endif
+#endif
#define _VTE_PUBLIC __attribute__((__visibility__("default"))) extern
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]