Is there a standard or good way of avoiding declared constants being named the same as a defined constant.
My Problem,
Im trying to compile my program using autoconf in linux which defines VERSION but in one of Mongo’s db header files they declare a constant named VERSION. There’s obviously a problem naming a variable using a right hand value.
Normally I would just change the name but in this case its not my library. I could figure out how to rename the defined variable autoconf.
Any suggestions?
You have to use
no-definealong withAM_INIT_AUTOMAKEin yourconfigure.acfile.See Automake manual.