341 | | #this part is a hack, but again didn't work without it |
342 | | #you can try without doing this, but if you get errors about |
343 | | # conflicting type def during PostGIS compile, you need this. |
344 | | #In my case I got this: |
345 | | {{{c:/projects/json-c/rel-0.9/include/json/json_object.h:32: error: conflicting types for 'boolean' |
346 | | C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/rpcndr.h:52: error: previous declaration of 'boolean' was here}}} |
347 | | |
348 | | * Open up /c/projects/json-c/rel-0.9/include/json/json_object.h |
349 | | * remark out line 32 that reads {{{ typedef int boolean }}} |
350 | | * so it should now read {{{ /** typedef int boolean; **/ }}} |
| 391 | |
| 392 | #this part is a hack, but again didn't work without it |
| 393 | #you can try without doing this, but if you get errors about |
| 394 | # conflicting type def during PostGIS compile, you need this. |
| 395 | #In my case I got this: |
| 396 | {{{c:/projects/json-c/rel-0.9/include/json/json_object.h:32: error: conflicting types for 'boolean' |
| 397 | C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/rpcndr.h:52: error: previous declaration of 'boolean' was here}}} |
| 398 | |
| 399 | * Open up /c/projects/json-c/rel-0.9/include/json/json_object.h |
| 400 | * remark out line 32 that reads {{{ typedef int boolean }}} |
| 401 | * so it should now read {{{ /** typedef int boolean; **/ }}} |
| 402 | * During the PostGIS configure process, you have to put this back the way it was otherwise configure complains json.h or something is not usable and refuses to configure with JSON-C support. Then you remark the line out again during compile. Crazy I know, but json-c won't compile without that line so can't take it out before json-c compile. |