As of version 4, GCC no longer supports the feature
named "cast-as-lvalue" (see
http://gcc.gnu.org/gcc-4.0/changes.html - "C and
Objective-C", 2nd paragraph).
That means that a statement like :
((char*) p) += HEADER_RESERVEDOFFSET;
(in btree.c, line 399)
is no longer valid.
Three files in PearPc use such statements :
Particularly, almost all macros defined in swab.h are
defined using that feature.
This patch makes the necessary modifications for fixing
this problem, and allows PearPC to be compiled using
GCC version 4 (and, hopefully, above).
Log in to post a comment.