HAVE_GETOPT is always NO for windows

This commit is contained in:
Matúš Kukan
2012-04-12 22:07:11 +02:00
parent 5dce272584
commit 40775ce183
2 changed files with 0 additions and 10 deletions

View File

@@ -57,15 +57,9 @@ $(eval $(call gb_Executable_add_exception_objects,rscdep,\
)) ))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
ifeq ($(HAVE_GETOPT),YES)
$(eval $(call gb_Executable_add_defs,rscdep,\
-DHAVE_GETOPT \
))
else
$(eval $(call gb_Executable_use_libraries,rscdep,\ $(eval $(call gb_Executable_use_libraries,rscdep,\
gnu_getopt \ gnu_getopt \
)) ))
endif endif
endif
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:

View File

@@ -44,13 +44,9 @@
#include "cppdep.hxx" #include "cppdep.hxx"
#if defined WNT #if defined WNT
#if !defined HAVE_GETOPT
#define __STDC__ 1 #define __STDC__ 1
#define __GNU_LIBRARY__ #define __GNU_LIBRARY__
#include <external/glibc/getopt.h> #include <external/glibc/getopt.h>
#else
#include <getopt.h>
#endif
#endif #endif
class RscHrcDep : public CppDep class RscHrcDep : public CppDep