jsoncpp - How to avoid conflict in two header file c++ -


I am using two lib jsoncpp and imap (lib c-client)

Jason CPP Has written the function. But in imap lib they have some macro write #define safe_write which overrides some macros from jsoncpp. I am not able to use both libraries at the same time. How can I avoid this conflict?

Assume that you do not use to write from the map:

 < Code> #include "imap.h" #undef Type #include "jsoncpp.h"    

Comments