You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by Petrus Hyvönen <pe...@gmail.com> on 2017/08/30 08:06:57 UTC

Compiler directive for PRIxMAX macro

Hi,

I'm trying to make some automated builds for JCC in conda-forge and ran
into some compiler problems with the PRIxMAX macro on linux. For some
compilers it seems like one should set the __STDC_FORMAT_MACROS flag.

I did this by providing -D__STDC_FORMAT_MACROS in JCC_CFLAGS envirnoment
variable, but maybe one should add a #define __STDC_FORMAT_MACROS prior to
inttypes.h import in jcc.cpp. Don't know if this would give other problems
to other compilers..

The problem with this is described in:
https://stackoverflow.com/questions/14535556/why-doesnt-priu64-work-in-this-code

Best Regards
/Petrus

-- 
_____________________________________________
Petrus Hyvönen, Uppsala, Sweden
Mobile Phone/SMS:+46 73 803 19 00