Skip to content

Commit 3d80347

Browse files
authored
Merge pull request #92 from fancycode/undef-ppc
Undefine "PPC" to prevent compiler errors on PowerPC.
2 parents b8aca18 + 5f2220c commit 3d80347

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pylzma/pylzma.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ pylzma_bcj_##id##_convert(PyObject *self, PyObject *args) \
198198
return result; \
199199
}
200200

201+
// Some PowerPC compilers have a builtin define "PPC" that generates invalid
202+
// code from the "DEFINE_BCJ_CONVERTER" macro.
203+
#undef PPC
204+
201205
DEFINE_BCJ_CONVERTER(arm, ARM);
202206
DEFINE_BCJ_CONVERTER(armt, ARMT);
203207
DEFINE_BCJ_CONVERTER(arm64, ARM64);

0 commit comments

Comments
 (0)