title: How to detect C++ compiler with macro in Xcode?
body: <p>I'm mixing Objective-C (*.m) and Objective-C++ (*.mm) source files in an iOS project.
  When I import a C++ header file in a *.m file how can I exclude the C++-specific code in the header file? I want to use a compiler macro, something like:</p>
  
  <pre><code>// SomeClass.h - a file I want to import in C++ and Objectice-C classes
  
  #if CPLUSPLUS
  #import "CPlusPlusLibrary.h"
  #endif 
  
  @interface SomeClass : BaseClass
  {
  
  #if CPLUSPLUS
    CPlusPlusClass* variable;
  #endif    
  
  }
  
  @end
  </code></pre>