TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Francois Thunus
from: Roland Ott
date: 1996-04-25 17:26:28
subject: Re: compiler ID

Hello Francois!

 FT> My question is: what are the internal codes for GNU C, dos and os/2
 FT> versions ? 

just do:

  touch foo.h & cpp -dM foo.h

which yields (emx/gcc 0.9a):

  #define __32BIT__ 1
  #define __EMX__ 1
  #define i386 1

the following variables are documented:

  #if defined(__EMX__)
       printf("emx version: %u, %x, %s\n", _emx_rev, _emx_vcmp, _emx_vprt);
  #endif

which prints:

  emx version: 34, 302e3961, 0.9a


CU/2, Roland

... I program like a MAN.  I use COPY CON PROGRAM.EXE  
--- Blue Wave/Max v2.30
* Origin: CCWN: Leistung ueberzeugt ! 07151-9932-40 (2:246/1401)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 246/1401 50 24/901 240/5500 24/999 888 396/1 270/101 712/515 711/808
@PATH: 711/809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.