Reapply "Convert build scripts to CMake (#13427)"

This reverts commit 374bb15db6.
This commit is contained in:
Ashcon Partovi
2024-09-11 08:24:50 -07:00
parent 3e904303ac
commit d39e422b20
223 changed files with 4468 additions and 44770 deletions

View File

@@ -0,0 +1,26 @@
--- deflate.h
+++ deflate.h
@@ -326,23 +326,7 @@ extern const uint8_t ZLIB_INTERNAL _dist_code[];
flush = (s->sym_next == s->sym_end); \
}
-#ifdef _MSC_VER
-
-/* MSC doesn't have __builtin_expect. Just ignore likely/unlikely and
- hope the compiler optimizes for the best.
-*/
-#define likely(x) (x)
-#define unlikely(x) (x)
-
-int __inline __builtin_ctzl(unsigned long mask)
-{
- unsigned long index ;
-
- return _BitScanForward(&index, mask) == 0 ? 32 : ((int)index) ;
-}
-#else
#define likely(x) __builtin_expect((x),1)
#define unlikely(x) __builtin_expect((x),0)
-#endif
#endif /* DEFLATE_H */