So I\'m having issues with some code that I\'ve inherited. This code was building fine in a C-only environment, but now I need to use C++ to call this code. The header p
p
Because bool is a basic type in C++ (but not in C), and can't be redefined.
bool
You can surround your code with
#ifndef __cplusplus typedef unsigned char bool; static const bool False = 0; static const bool True = 1; #endif