summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2008-10-07 11:25:42 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-10-07 11:25:42 -0700
commit3bceaeb3192ca75a14854d614e1621d28fb82274 (patch)
treee4e48d422257417a9b2edc4358d45c3814289648
parentb707104f4dba0963ab17c1d6a29c1e3a848ea408 (diff)
define macros to 1 in icetrans.c to avoid redefined macro warnings
X.Org Bug #17947 <http://bugs.freedesktop.org/show_bug.cgi?id=17947> Patch #19444 <http://bugs.freedesktop.org/attachment.cgi?id=19444> Define as 1 (one) as done by autoconf and the command line option, e.g. -DICE_t, not as empty. This avoids the gcc (3.4.6) warnings: ../../libICE-1.0.4/src/icetrans.c:29:1: warning: "ICE_t" redefined ../config.h:38:1: warning: this is the location of the previous definition ../../libICE-1.0.4/src/icetrans.c:30:1: warning: "TRANS_CLIENT" redefined <command line>:6:1: warning: this is the location of the previous definition ../../libICE-1.0.4/src/icetrans.c:31:1: warning: "TRANS_SERVER" redefined <command line>:7:1: warning: this is the location of the previous definition
-rw-r--r--src/icetrans.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/icetrans.c b/src/icetrans.c
index 1efd27d..52e432b 100644
--- a/src/icetrans.c
+++ b/src/icetrans.c
@@ -24,8 +24,8 @@
#include <config.h>
#endif
-#define ICE_t
-#define TRANS_CLIENT
-#define TRANS_SERVER
+#define ICE_t 1
+#define TRANS_CLIENT 1
+#define TRANS_SERVER 1
#include <X11/Xtrans/transport.c>