diff options
Diffstat (limited to 'vcpkg/ports/liblzf/0002-fix-macro-expansion-ub.patch')
| -rw-r--r-- | vcpkg/ports/liblzf/0002-fix-macro-expansion-ub.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/ports/liblzf/0002-fix-macro-expansion-ub.patch b/vcpkg/ports/liblzf/0002-fix-macro-expansion-ub.patch new file mode 100644 index 0000000..018c4e6 --- /dev/null +++ b/vcpkg/ports/liblzf/0002-fix-macro-expansion-ub.patch @@ -0,0 +1,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 + + /* |