]> git.pond.sub.org Git - empserver/commitdiff
Work around for broken MSC C++ 6.0 (VC98) choking on empty macro arguments.
authorRon Koenderink <rkoenderink@yahoo.ca>
Tue, 5 Oct 2004 01:08:21 +0000 (01:08 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Tue, 5 Oct 2004 01:08:21 +0000 (01:08 +0000)
Fixed in MSC C++ 7.0.

include/econfig-spec.h

index 53bed6cbdce6ab4a1b78b92b6c6a0049a9e852ae..3fcd576cccaf5a1a29dc4d6f61f3e13c07982bee 100644 (file)
  *
  *  econfig-spec.h: Combined include for optlist.h and emp_config.c
  */
+\r
+/*\r
+ * Preprocessor of MSC C++ 6.0 (VC98) is broken and chokes on empty\r
+ * macro arguments.  Fixed in MSC C++ 7.0.  Work around: pass
+ * useless token `unused'.
+ */
 
 #if    defined(EMP_CONFIG_C_OUTPUT)
 
@@ -44,7 +50,7 @@
 #endif /* EMP_CONFIG_C_OUTPUT || EMP_CONFIG_H_OUTPUT */
 
 #define EMPCF_COMMENT(comment) \
-EMPCFONLYC("", emp_config_dummy, , NSC_NOTYPE, 0, (comment))
+EMPCFONLYC("", emp_config_dummy, unused , NSC_NOTYPE, 0, (comment))
 
 /* things that can be changed */
 EMPCF_COMMENT("\n### Server configuration and information")
@@ -98,8 +104,8 @@ EMPCFBOTH("game_hours", game_hours, char *, NSC_STRING, 0,
     "Hours game is up and running (6:00-18:00)")
 
 EMPCF_COMMENT("\n\n### Options\n")
-EMPCFONLYC("option", emp_config_dummy, , NSC_NOTYPE, 0, NULL)
-EMPCFONLYC("nooption", emp_config_dummy, , NSC_NOTYPE, 0, NULL)
+EMPCFONLYC("option", emp_config_dummy, unused , NSC_NOTYPE, 0, NULL)
+EMPCFONLYC("nooption", emp_config_dummy, unused , NSC_NOTYPE, 0, NULL)
 
 
 EMPCF_COMMENT("\n\n### Countries")