www.digitalmars.com         C & C++   DMDScript  

c++.idde - automatic #define

reply Riccardo Cohen <rcohen articque.com> writes:
Hi,
Is there a define that is automatically added when compiling, and that would
notify that compiler is 
DM and not visualC++ ?
When I build, I can see no define like -D_DMWIN or else .. even not the WIN32 !
are they implicit ?

Thanks

-- 
Riccardo Cohen

Articque
Les Roches
37230 Fondettes
France
web = http://www.articque.com
tel: +33 02 47 49 90 49
fax: +33 02 47 49 91 49
Nov 12 2003
parent reply Arjan Knepper <Arjan_member pathlink.com> writes:
__DMC__ is always defined it has the compiler version number like 0x837.

See also http://www.digitalmars.com/ctg/predefined.html

Jan has posted an file called Target.h take a look at that.

Arjan Knepper


In article <bot3bg$1vdh$1 digitaldaemon.com>, Riccardo Cohen says...
Hi,
Is there a define that is automatically added when compiling, and that would
notify that compiler is 
DM and not visualC++ ?
When I build, I can see no define like -D_DMWIN or else .. even not the WIN32 !
are they implicit ?

Thanks

-- 
Riccardo Cohen

Articque
Les Roches
37230 Fondettes
France
web = http://www.articque.com
tel: +33 02 47 49 90 49
fax: +33 02 47 49 91 49
Nov 12 2003
parent Riccardo Cohen <rcohen articque.com> writes:
Yes of course, I'm sorry not to have a look at doc. (anyway the number of
predefines is really 
impressive)

Arjan Knepper wrote:

 __DMC__ is always defined it has the compiler version number like 0x837.
 
 See also http://www.digitalmars.com/ctg/predefined.html
 
 Jan has posted an file called Target.h take a look at that.
 
 Arjan Knepper
 
 
 In article <bot3bg$1vdh$1 digitaldaemon.com>, Riccardo Cohen says...
 
Hi,
Is there a define that is automatically added when compiling, and that would
notify that compiler is 
DM and not visualC++ ?
When I build, I can see no define like -D_DMWIN or else .. even not the WIN32 !
are they implicit ?

Thanks

-- 
Riccardo Cohen

Articque
Les Roches
37230 Fondettes
France
web = http://www.articque.com
tel: +33 02 47 49 90 49
fax: +33 02 47 49 91 49
-- Riccardo Cohen Articque Les Roches 37230 Fondettes France web = http://www.articque.com tel: +33 02 47 49 90 49 fax: +33 02 47 49 91 49
Nov 13 2003