Thread overview
automatic #define
Nov 12, 2003
Riccardo Cohen
Nov 12, 2003
Arjan Knepper
Nov 13, 2003
Riccardo Cohen
November 12, 2003
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

November 12, 2003
__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
>


November 13, 2003
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