On 22/01/2012 07:01, peter green wrote: > >> The FTBFS is caused by a rather hacky patch[1] I included in -3 to fix an >> FTBFS >> in s390[2]. >> >> Is there a better way of doing this without rewriting the parts of the >> library >> that use the NEED_SIZET macro to use templates? Specifically, it looks like I >> would need a preprocessor conditional to check whether size_t is unsigned >> int or >> unsigned long. >> > I don't know any way to do a preproccessor conditional for it directly but I > have figured out > a way to find it from within a script or makefile. > > here's a makefile snippet that figures it out (should be easy to turn it into > a > shell script > fragment if that is more conviniant for you). > > ifneq (,$(findstring long,$(shell echo __SIZE_TYPE__ | cpp -P))) > CFLAGS += -dSIZE_T_IS_LONG > endif
Ah, cool, that sounds like it'll work for the time being, until a more permanent solution comes along. Thanks! -- Kind regards, Loong Jin
signature.asc
Description: OpenPGP digital signature