title: Can I mimic a C header that redefines bool in C++?
body: <p>I am writing a program and I would really prefer to write in C++, however, I'm required to include a C header that redefines bool:  </p>
  
  <pre><code># define false 0
  # define true  1
  typedef int bool;
  </code></pre>
  
  <p>The obvious solution would be to edit the header to say:</p>
  
  <pre><code>#ifndef __cplusplus
  # define false 0
  # define true  1
  typedef int bool;
  #endif
  </code></pre>
  
  <p>but, alas, since the library is read-only I cannot.</p>
  
  <p>Is there a way I can tell gcc to ignore this typedef? Or, can I write most functions in C++ and then make a C wrapper for the two? Or, should I suck it up and write the thing in C?</p>