Changeset 96
- Timestamp:
- Aug 9, 2010, 9:02:40 PM (15 years ago)
- Location:
- trunk/openjdk/jdk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk/jdk/make/java/zip/Makefile
r2 r96 48 48 java/util/jar/JarFile.java 49 49 50 ifneq ($( PLATFORM), windows)50 ifneq ($(filter-out windows os2, $(PLATFORM)),) 51 51 OTHER_CFLAGS += -DUSE_MMAP 52 else 52 endif 53 ifeq ($(PLATFORM), windows) 53 54 # Files built here do not compile with warning level 3 if warnings are fatal 54 55 COMPILER_WARNINGS_FATAL=false … … 63 64 endif 64 65 endif 65 include $(BUILDDIR)/common/Mapfile-vers.gmk66 include $(BUILDDIR)/common/Library.gmk67 66 68 67 ifeq ($(PLATFORM), windows) … … 70 69 -export:ZIP_ReadEntry -export:ZIP_GetNextEntry 71 70 else 71 ifeq ($(PLATFORM), os2) 72 # exports live in .def file 73 DEF_FILE = $(OBJDIR)/$(LIBRARY).def 74 $(DEF_FILE): $(MAKEFILE) 75 @$(ECHO) 'EXPORTS \n \ 76 ZIP_Open = "_ZIP_Open@8" \n \ 77 ZIP_Close = "_ZIP_Close@4" \n \ 78 ZIP_FindEntry = "_ZIP_FindEntry@16" \n \ 79 ZIP_ReadEntry = "_ZIP_ReadEntry@16" \n \ 80 ZIP_GetNextEntry = "_ZIP_GetNextEntry@8" \n \ 81 ' > $@ 82 clean:: 83 -$(RM) $(DEF_FILE) 84 else 72 85 CPPFLAGS += -UDEBUG 73 86 endif 87 endif 88 89 include $(BUILDDIR)/common/Mapfile-vers.gmk 90 include $(BUILDDIR)/common/Library.gmk 74 91 75 92 CPPFLAGS += -I$(SHARE_SRC)/native/java/util/zip/zlib-$(ZLIB_VERSION) -
trunk/openjdk/jdk/src/share/native/java/util/zip/zip_util.c
r2 r96 143 143 static int 144 144 ZFILE_read(ZFILE zfd, char *buf, jint nbytes) { 145 #if def WIN32145 #if defined(WIN32) || defined(__OS2__) 146 146 return (int) IO_Read(zfd, buf, nbytes); 147 147 #else
Note:
See TracChangeset
for help on using the changeset viewer.