summaryrefslogtreecommitdiff
path: root/idlc/source
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2006-09-25 12:11:46 +0000
committerVladimir Glazounov <vg@openoffice.org>2006-09-25 12:11:46 +0000
commite2a903a0a082f1cf63d94f112718c57a778d14c7 (patch)
tree942a9a6f534a3ff9a9127679650b189d00beeb63 /idlc/source
parent6089c4772d9f0bde0c7c8bac16d93ba5a26961f5 (diff)
INTEGRATION: CWS obo05 (1.5.24); FILE MERGED
2006/06/23 18:47:19 obo 1.5.24.2: RESYNC: (1.5-1.6); FILE MERGED 2006/06/07 09:21:35 obo 1.5.24.1: #i53611# port for .net 2005
Diffstat (limited to 'idlc/source')
-rw-r--r--idlc/source/preproc/unix.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/idlc/source/preproc/unix.c b/idlc/source/preproc/unix.c
index c439665b9b9a..844731945870 100644
--- a/idlc/source/preproc/unix.c
+++ b/idlc/source/preproc/unix.c
@@ -4,9 +4,9 @@
*
* $RCSfile: unix.c,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: hr $ $Date: 2006-06-20 03:52:12 $
+ * last change: $Author: vg $ $Date: 2006-09-25 13:11:46 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -40,6 +40,7 @@
#include <fcntl.h>
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__))
#include <io.h>
+#include <sys/stat.h>
#else
#include <unistd.h>
#endif
@@ -203,8 +204,11 @@ void
if (optind + 1 < argc)
{
- int fdo = creat(argv[optind + 1], 0666);
-
+#if defined(WNT) && (_MSC_VER >= 1400)
+ int fdo = creat(argv[optind + 1], _S_IREAD | _S_IWRITE );
+#else
+ int fdo = creat(argv[optind + 1], 0666 );
+#endif
if (fdo < 0)
error(FATAL, "Can't open output file %s", argv[optind + 1]);
@@ -250,4 +254,3 @@ void *
}
#endif
-