I would like my C++/CLI headers to compile even when under another platform. Of course I am not expecting to compile them but just ignore them.
Would this be appropriate ? (_MSC_VER)
#ifdef _MSC_VER
using namespace System;
namespace ENMFP {
public ref struct Data {
};
}
#endif
Thanks !
You can use the
__cplusplus_clipredefined macro documented here: