[Pkg-wmaker-commits] [wmbiff] 11/32: add preprocessor define to handle portability of __attribute__ tag to non-gcc compilers (untested)
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:00:35 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to tag wmbiff_0_3_8
in repository wmbiff.
commit 7ed4c50e4875c0677e2b58de300aeeea8c872863
Author: bluehal <bluehal>
Date: Sat Mar 2 22:38:03 2002 +0000
add preprocessor define to handle portability of __attribute__ tag to non-gcc compilers (untested)
---
wmbiff/Client.h | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/wmbiff/Client.h b/wmbiff/Client.h
index 4f8db8e..338bc02 100644
--- a/wmbiff/Client.h
+++ b/wmbiff/Client.h
@@ -1,4 +1,4 @@
-/* $Id: Client.h,v 1.9 2002/03/02 05:58:16 bluehal Exp $ */
+/* $Id: Client.h,v 1.10 2002/03/02 22:38:03 bluehal Exp $ */
/* Author : Scott Holden ( scotth at thezone.net )
Modified : Yong-iL Joh ( tolkien at mizi.com )
Modified : Jorge Garc�a ( Jorge.Garcia at uv.es )
@@ -114,5 +114,11 @@ do { \
} \
} while(0)
-#endif
+/* technique used in apache to allow GCC's attribute tags,
+ without requiring gcc as the compiler */
+#if !defined(__GNUC__) || __GNUC__ < 2 || \
+ (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
+#define __attribute__(__x)
+#endif /* gnuc */
+#endif /* client.h */
/* vim:set ts=4: */
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git
More information about the Pkg-wmaker-commits
mailing list