From: Andris P. <and...@ik...> - 2011-06-09 09:24:52
|
Json-C (http://oss.metaparadigm.com/json-c/) also installs file /usr/include/json/json.c. Json-C package is present at least in some Linux distributions (it is in Fedora) It would be nice to avoid conflict with JsonCpp header file include/json/json.h. One way would be to move all headers to include/jsoncpp/ from include/json/. Unfortunatelly this change would break already existing software which uses JsonCpp. Perhaps it would be better to put headers in new place and add forwarding headers in old place. For example: include/json/json.h could contain #ifndef __JSONCPP_JSON_JSON_H__ #define __JSONCPP_JSON_JSON_H__ #warning Header file json/json.h is deprecated. Use jsoncpp/json.h instead #include <jsoncpp/json.h> #endif and similarly for other headers. After some time it would then be possible to remove headers at old place. Andris |