BaH.Jansson (JSON Parser) Android Fix

BlitzMax Forums/Brucey's Modules/BaH.Jansson (JSON Parser) Android Fix

RustyKristi(Posted 2016) [#1]
While doing some test with JSON parsing (Jansson.Mod), compiling the mod and strconv.h fails..

error: 'struct lconv' has no member named 'decimal_point'


Should be in ncurses_cfg.h (not in sources) so I did a quick fix and add the following in strconv.h:

#ifdef __ANDROID__
 #define JSON_HAVE_LOCALECONV 0
#endif


Build and run the test example on android + desktop. Just a quick fix and it works ok now.


Derron(Posted 2016) [#2]
Maybe send out a pull request on the github repo.

especially if you intend to play a bit more with modules and NG.

Bye
Ringe


RustyKristi(Posted 2016) [#3]
Thanks Derron, but I'm sure Brucey will have a much better solution compared to that. It's just a quick fix that I need to work with my stuff.


Brucey(Posted 2016) [#4]
I've re-arranged the headers, and updated to the latest jansson (2.8 dev).
It should work better now.


RustyKristi(Posted 2016) [#5]
awesome, thanks :D