1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

make it compilable with Intel(R) C Compiler.

why icc defines __GNUC__?

Reported by:	Attila Nagy <bra@fsn.hu>
Suggested by:	hrs, nyan
Tested by:	Attila Nagy <bra@fsn.hu>
This commit is contained in:
Hajimu UMEMOTO 2005-02-24 19:31:22 +00:00
parent 1f93c107c4
commit 0493c405e3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=129689
3 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,13 @@
Index: lib/libcyr_cfg.c
diff -u -p lib/libcyr_cfg.c.orig lib/libcyr_cfg.c
--- lib/libcyr_cfg.c.orig Wed Mar 10 00:05:58 2004
+++ lib/libcyr_cfg.c Fri Feb 25 00:06:44 2005
@@ -52,7 +52,7 @@
#include "libcyr_cfg.h"
#include "cyrusdb.h"
-#if defined(__GNUC__) && __GNUC__ > 1
+#if defined(__GNUC__) && __GNUC__ > 1 && !defined(__INTEL_COMPILER)
/* We can use the GCC union constructor extension */
#define CFGVAL(t,v) (union cyrus_config_value)((t)(v))
#else

View File

@ -0,0 +1,13 @@
Index: lib/libcyr_cfg.c
diff -u -p lib/libcyr_cfg.c.orig lib/libcyr_cfg.c
--- lib/libcyr_cfg.c.orig Wed Mar 10 00:05:58 2004
+++ lib/libcyr_cfg.c Fri Feb 25 00:06:44 2005
@@ -52,7 +52,7 @@
#include "libcyr_cfg.h"
#include "cyrusdb.h"
-#if defined(__GNUC__) && __GNUC__ > 1
+#if defined(__GNUC__) && __GNUC__ > 1 && !defined(__INTEL_COMPILER)
/* We can use the GCC union constructor extension */
#define CFGVAL(t,v) (union cyrus_config_value)((t)(v))
#else

View File

@ -0,0 +1,13 @@
Index: lib/libcyr_cfg.c
diff -u -p lib/libcyr_cfg.c.orig lib/libcyr_cfg.c
--- lib/libcyr_cfg.c.orig Wed Mar 10 00:05:58 2004
+++ lib/libcyr_cfg.c Fri Feb 25 00:06:44 2005
@@ -52,7 +52,7 @@
#include "libcyr_cfg.h"
#include "cyrusdb.h"
-#if defined(__GNUC__) && __GNUC__ > 1
+#if defined(__GNUC__) && __GNUC__ > 1 && !defined(__INTEL_COMPILER)
/* We can use the GCC union constructor extension */
#define CFGVAL(t,v) (union cyrus_config_value)((t)(v))
#else