zeek/auxil/vcpkg/ports/liblzf/0002-fix-macro-expansion-ub.patch
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

16 lines
339 B
Diff

--- a/lzfP.h
+++ b/lzfP.h
@@ -79,7 +79,11 @@
* Unconditionally aligning does not cost very much, so do it if unsure
*/
#ifndef STRICT_ALIGN
-# define STRICT_ALIGN !(defined(__i386) || defined (__amd64))
+# if !(defined(__i386) || defined (__amd64))
+# define STRICT_ALIGN 1
+# else
+# define STRICT_ALIGN 0
+# endif
#endif
/*