summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorL Peter Deutsch <lpd@ghostscript.com>2000-07-03 21:07:05 +0000
committerL Peter Deutsch <lpd@ghostscript.com>2000-07-03 21:07:05 +0000
commit8b9b96fff8186accaa1d6e44ac7955cdbb85a905 (patch)
tree7ba1f59adf3583faccd875796fbb33fed92487a3
parent96bf8c4b84adabcb5e6dd3796f2781c3ff7fd640 (diff)
downloadghostpdl-8b9b96fff8186accaa1d6e44ac7955cdbb85a905.tar.gz
Fix: The workaround for Microsoft C's omission of O_APPEND et al caused
warnings or errors with other compilers. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@543 a1074d23-0009-0410-80fe-cf8c14f379e6
-rw-r--r--gs/src/stat_.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/gs/src/stat_.h b/gs/src/stat_.h
index c1ce7953d..3277cc3da 100644
--- a/gs/src/stat_.h
+++ b/gs/src/stat_.h
@@ -74,25 +74,25 @@
* Microsoft C defines the O_ and S_ symbols with, and only with, a
* leading underscore.
*/
-#ifndef O_APPEND
+#if !defined(O_APPEND) && defined(_O_APPEND)
# define O_APPEND _O_APPEND
#endif
-#ifndef O_CREAT
+#if !defined(O_CREAT) && defined(_O_CREAT)
# define O_CREAT _O_CREAT
#endif
-#ifndef O_EXCL
+#if !defined(O_EXCL) && defined(_O_EXCL)
# define O_EXCL _O_EXCL
#endif
-#ifndef O_RDONLY
+#if !defined(O_RDONLY) && defined(_O_RDONLY)
# define O_RDONLY _O_RDONLY
#endif
-#ifndef O_RDWR
+#if !defined(O_RDWR) && defined(_O_RDWR)
# define O_RDWR _O_RDWR
#endif
-#ifndef O_TRUNC
+#if !defined(O_TRUNC) && defined(_O_TRUNC)
# define O_TRUNC _O_TRUNC
#endif
-#ifndef O_WRONLY
+#if !defined(O_WRONLY) && defined(_O_WRONLY)
# define O_WRONLY _O_WRONLY
#endif
/*