I have a C header that was written to compile as both C and C++ (it only uses features from the common subset, and uses that extern "C"
thing).
Problem is, that header declares stuff in the global namespace. I'd rather avoid that for the usual reasons. I thought about doing this:
namespace foo {
#include <foo.h>
}
Is doing this a good idea? Do I have alternatives that don't include editing the header file?