port/getopt: s/#if/#ifdef/ so it still works if HAVE_STRING_H is not defined.

Francois Gouget fgouget at free.fr
Wed Mar 5 05:07:04 CST 2008


---

MSVC complained that HAVE_STRING_H is not an integer expression.

 libs/port/getopt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libs/port/getopt.c b/libs/port/getopt.c
index dae56ec..7bcf279 100644
--- a/libs/port/getopt.c
+++ b/libs/port/getopt.c
@@ -212,7 +212,7 @@ static char *posixly_correct;
 # define my_index	strchr
 #else
 
-# if HAVE_STRING_H
+# ifdef HAVE_STRING_H
 #  include <string.h>
 # else
 #  include <strings.h>
-- 
1.5.4.1




More information about the wine-patches mailing list