Skip to content

Commit 5f19451

Browse files
author
Ryan Punt
committed
Xcode 5 upgrade recommendations
1 parent 6dd196b commit 5f19451

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

ZipArchive/ZipArchive.xcodeproj/project.pbxproj

+6-3
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@
445445
0867D690FE84028FC02AAC07 /* Project object */ = {
446446
isa = PBXProject;
447447
attributes = {
448-
LastUpgradeCheck = 0460;
448+
LastUpgradeCheck = 0500;
449449
TargetAttributes = {
450450
C95AB35717E1C37700120861 = {
451451
TestTargetID = D2AAC07D0554694100DB518D;
@@ -638,6 +638,7 @@
638638
GCC_WARN_ABOUT_RETURN_TYPE = YES;
639639
GCC_WARN_UNUSED_VARIABLE = YES;
640640
MACOSX_DEPLOYMENT_TARGET = "";
641+
ONLY_ACTIVE_ARCH = YES;
641642
OTHER_LDFLAGS = "-ObjC";
642643
};
643644
name = Debug;
@@ -691,7 +692,6 @@
691692
isa = XCBuildConfiguration;
692693
buildSettings = {
693694
ALWAYS_SEARCH_USER_PATHS = NO;
694-
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
695695
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
696696
CLANG_CXX_LIBRARY = "libc++";
697697
CLANG_ENABLE_MODULES = YES;
@@ -737,7 +737,6 @@
737737
isa = XCBuildConfiguration;
738738
buildSettings = {
739739
ALWAYS_SEARCH_USER_PATHS = NO;
740-
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
741740
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
742741
CLANG_CXX_LIBRARY = "libc++";
743742
CLANG_ENABLE_MODULES = YES;
@@ -789,6 +788,7 @@
789788
CLANG_WARN_INT_CONVERSION = YES;
790789
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
791790
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
791+
COMBINE_HIDPI_IMAGES = YES;
792792
COPY_PHASE_STRIP = NO;
793793
FRAMEWORK_SEARCH_PATHS = (
794794
"$(DEVELOPER_FRAMEWORKS_DIR)",
@@ -833,6 +833,7 @@
833833
CLANG_WARN_INT_CONVERSION = YES;
834834
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
835835
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
836+
COMBINE_HIDPI_IMAGES = YES;
836837
COPY_PHASE_STRIP = YES;
837838
ENABLE_NS_ASSERTIONS = NO;
838839
FRAMEWORK_SEARCH_PATHS = (
@@ -909,6 +910,7 @@
909910
C95AB36B17E1C37800120861 /* Release */,
910911
);
911912
defaultConfigurationIsVisible = 0;
913+
defaultConfigurationName = Release;
912914
};
913915
C95AB38117E1C47D00120861 /* Build configuration list for PBXNativeTarget "ZipArchive mac Tests" */ = {
914916
isa = XCConfigurationList;
@@ -917,6 +919,7 @@
917919
C95AB38317E1C47D00120861 /* Release */,
918920
);
919921
defaultConfigurationIsVisible = 0;
922+
defaultConfigurationName = Release;
920923
};
921924
C9C36EF7160AC3C0005BED39 /* Build configuration list for PBXAggregateTarget "ZipArchive" */ = {
922925
isa = XCConfigurationList;

ZipArchive/ZipArchive.xcodeproj/xcshareddata/xcschemes/ZipArchive ios.xcscheme

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3+
LastUpgradeVersion = "0500"
34
version = "1.3">
45
<BuildAction
56
parallelizeBuildables = "YES"

ZipArchive/ZipArchive.xcodeproj/xcshareddata/xcschemes/ZipArchive mac.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0450"
3+
LastUpgradeVersion = "0500"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

minizip/unzip.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -1701,8 +1701,7 @@ extern int ZEXPORT unzReadCurrentFile (unzFile file, voidp buf, unsigned len)
17011701
return UNZ_PARAMERROR;
17021702

17031703

1704-
if ((pfile_in_zip_read_info->read_buffer == NULL))
1705-
return UNZ_END_OF_LIST_OF_FILE;
1704+
if (pfile_in_zip_read_info->read_buffer == NULL) return UNZ_END_OF_LIST_OF_FILE;
17061705
if (len==0)
17071706
return 0;
17081707

minizip/zip.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1114,9 +1114,9 @@ extern int ZEXPORT zipOpenNewFileInZip4_64 (zipFile file, const char* filename,
11141114
zi->ci.flag = flagBase;
11151115
if ((level==8) || (level==9))
11161116
zi->ci.flag |= 2;
1117-
if ((level==2))
1117+
if (level==2)
11181118
zi->ci.flag |= 4;
1119-
if ((level==1))
1119+
if (level==1)
11201120
zi->ci.flag |= 6;
11211121
if (password != NULL)
11221122
zi->ci.flag |= 1;

0 commit comments

Comments
 (0)