summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2010-06-16 19:57:33 +0200
committerMathias Bauer <mba@openoffice.org>2010-06-16 19:57:33 +0200
commit7e408c02d5cd94b7363403ef8b6f2c186c13718e (patch)
tree98661c57c86f0de8c2166bfdd7620af6b2cadb44 /idlc
parent4948e05672dec3008f2931fc8c39c95d1ff9edab (diff)
CWS systemlibc: #i69033#: some fixes for Windows
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/preproc/makefile.mk4
-rw-r--r--idlc/source/preproc/unix.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/idlc/source/preproc/makefile.mk b/idlc/source/preproc/makefile.mk
index f65f37e94..b87d60d0d 100644
--- a/idlc/source/preproc/makefile.mk
+++ b/idlc/source/preproc/makefile.mk
@@ -63,6 +63,10 @@ APP1OBJS=$(OBJ)$/cpp.obj
APP1LIBS= $(LB)$/idlcpp.lib
+.IF "$(GUI)" == "WNT"
+APP1STDLIBS=gnu_getopt.lib
+.ENDIF
+
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
diff --git a/idlc/source/preproc/unix.c b/idlc/source/preproc/unix.c
index 215161ec9..922b2a320 100644
--- a/idlc/source/preproc/unix.c
+++ b/idlc/source/preproc/unix.c
@@ -33,6 +33,7 @@
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__))
#include <io.h>
#include <sys/stat.h>
+#include <external/glibc/getopt.h>
#else
#include <unistd.h>
#endif