OK, that's a better name... :-)
But I thought of something else, D doesn't have #defines but it does have "
versions". So instead of just making that area unusable, we might rename the field for defines into versions when setting it for a D compiler. Then it's just a matter of using the -version or -fversion compiler switches...
So where for C/C++ you would set "__WXMAC__" and it would pass -D__WXMAC__ to the compiler, in D you would set "__WXMAC__" and it would pass -version=__WXMAC__ to it.
This define/version is then used by the conditionally compiled code like:
#ifdef __WXMAC__
....
#endif
version (__WXMAC__)
{
....
}
http://www.algonet.se/~afb/wx/codeblocks-svn-dmdversions.patch