summaryrefslogtreecommitdiff
path: root/win32/zipup.h
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-09-09 02:36:42 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-09-09 02:36:42 +0900
commitcb9021933010823e97114e40c02cd2cef8d78d8f (patch)
tree0bca7e85536a30aaeaf4254c557583d72296bd79 /win32/zipup.h
parent5396c5e853e76507fac47181b14b25adb725f628 (diff)
downloadzip-tizen_2.3.1.tar.gz
zip-tizen_2.3.1.tar.bz2
zip-tizen_2.3.1.zip
Diffstat (limited to 'win32/zipup.h')
-rw-r--r--win32/zipup.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/win32/zipup.h b/win32/zipup.h
index f65c41e..9505b56 100644
--- a/win32/zipup.h
+++ b/win32/zipup.h
@@ -1,9 +1,11 @@
/*
- Copyright (c) 1990-2005 Info-ZIP. All rights reserved.
+ win32/zipup.h - Zip 3
- See the accompanying file LICENSE, version 2004-May-22 or later
+ Copyright (c) 1990-2007 Info-ZIP. All rights reserved.
+
+ See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
- If, for some reason, both of these files are missing, the Info-ZIP license
+ If, for some reason, all these files are missing, the Info-ZIP license
also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html
*/
#ifndef __CYGWIN__
@@ -24,6 +26,7 @@
#define fhow (O_RDONLY|O_BINARY)
#define fbad (-1)
typedef int ftype;
+
#if defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__EMX__)
# define zopen(n,p) sopen(n,p,SH_DENYNO)
#elif defined(__CYGWIN__) || defined(__IBMC__)
@@ -31,6 +34,14 @@ typedef int ftype;
#else
# define zopen(n,p) _sopen(n,p,_SH_DENYNO)
#endif
+#ifdef UNICODE_SUPPORT
+# if defined(__CYGWIN__) || defined(__IBMC__)
+# define zwopen(n,p) wopen(n,p)
+# else
+# define zwopen(n,p) _wsopen(n,p,_SH_DENYNO)
+# endif
+#endif
+
#define zread(f,b,n) read(f,b,n)
#define zclose(f) close(f)
#define zerr(f) (k == (extent)(-1L))