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
commit4220a05a5313f40d0f0ee7e84247ad45f768a39f (patch)
tree8bd995da336f9a40aa7b764c63fee8e1321407d8 /idlc
parente377be798f4b35c76a4611d153255c43203921e2 (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 f65f37e941fb..b87d60d0d075 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 2f40bd696015..4997e317e697 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