macOs M1 build fix on arm cpu checks.#1198
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1198 +/- ##
===========================================
- Coverage 87.38% 87.33% -0.05%
===========================================
Files 114 114
Lines 10146 10146
Branches 2554 2554
===========================================
- Hits 8866 8861 -5
- Misses 956 961 +5
Partials 324 324
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
arch/arm/arm_features.c
Outdated
| # define ID_AA64ISAR0_CRC32_VAL ID_AA64ISAR0_CRC32 | ||
| # endif | ||
| #elif defined(__APPLE__) | ||
| # define _DARWIN_C_SOURCE /* enable types aliases (eg u_int) */ |
There was a problem hiding this comment.
This might break if zlib-ng is included by another project... Like other similar preprocessor defines, it should always be guarded.
There was a problem hiding this comment.
sorry I missed your comment.
|
What error does this fix? |
d3ab1ac to
df42862
Compare
It enables type aliases such as u_int .. etc |
df42862 to
676a433
Compare
mtl1979
left a comment
There was a problem hiding this comment.
Preferred way would be to add _DARWIN_C_SOURCE to whole project, but we don't use regular expressions, so mixing source files with and without the define is considered safe. We also do the same with other similar defines. The relevant manual page would be compat.5 on affected systems.
Changes since 2.0.6: - Fix CVE-2022-37434 #1328 - Fix chunkmemset #1196 - Fix deflateBound too small #1236 - Fix Z_SOLO #1263 - Fix ACLE variant of crc32 #1274 - Fix inflateBack #1311 - Fix deflate_quick windowsize #1431 - Fix DFLTCC bugs related to adler32 #1349 and #1390 - Fix warnings #1194 #1312 #1362 - MacOS build fix #1198 - Add invalid windowBits handling #1293 - Support for Force TZCNT #1186 - Support for aligned_alloc() #1360 - Minideflate improvements #1175 #1238 - Dont use unaligned access for memcpy #1309 - Build system #1209 #1233 #1267 #1273 #1278 #1292 #1316 #1318 #1365 - Test improvements #1208 #1227 #1241 #1353 - Cleanup #1266 - Documentation #1205 #1359 - Misc improvements #1294 #1297 #1306 #1344 #1348 - Backported zlib fixes - Backported CI workflows from Develop branch
Changes since 2.0.6: - Fix CVE-2022-37434 #1328 - Fix chunkmemset #1196 - Fix deflateBound too small #1236 - Fix Z_SOLO #1263 - Fix ACLE variant of crc32 #1274 - Fix inflateBack #1311 - Fix deflate_quick windowsize #1431 - Fix DFLTCC bugs related to adler32 #1349 and #1390 - Fix warnings #1194 #1312 #1362 - MacOS build fix #1198 - Add invalid windowBits handling #1293 - Support for Force TZCNT #1186 - Support for aligned_alloc() #1360 - Minideflate improvements #1175 #1238 - Dont use unaligned access for memcpy #1309 - Build system #1209 #1233 #1267 #1273 #1278 #1292 #1316 #1318 #1365 - Test improvements #1208 #1227 #1241 #1353 - Cleanup #1266 - Documentation #1205 #1359 - Misc improvements #1294 #1297 #1306 #1344 #1348 - Backported zlib fixes - Backported CI workflows from Develop branch
No description provided.