aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/liblzf/0002-fix-macro-expansion-ub.patch
blob: 018c4e68101512e08445bddbdc07f4e49310a68e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- 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
 
 /*