delorie.com/djgpp/bugs/show.cgi   search  
Bug 000203

When Created: 01/28/1998 06:53:15
Against DJGPP version: 2.01
By whom: phawkins@dynamite.com.au
Abstract: #if instead of #ifdef in 'union REGS' in dos.h
On line 74 of the dos.h which comes with djdev201.zip, the structure:

union REGS {
 struct DWORDREGS d
#ifdef _NAIVE_DOS_REGS
 struct WORDREGS x
#else
#if _BORLAND_DOS_REGS
 struct DWORDREGS x
#else
 struct DWORDREGS_W x;
#endif
#endif
 struct WORDREGS w;
 struct BYTEREGS h;
};

needs the line "#if _BORLAND_DOS_REGS" changed to "#ifdef _BORLAND_DOS_REGS"
if "#define _BORLAND_DOS_REGS" in a source file is to work without a parse 
error in dos.h

Solution added: 01/28/1998 06:54:23
By whom: phawkins@dynamite.com.au
Change
#if _BORLAND_DOS_REGS
to:
#ifdef _BORLAND_DOS_REGS

Solution added: 04/13/1999 12:00:13
By whom: eliz@is.elta.co.il
Corrected in WIP and will be in v2.03.

Fixed in version on 04/22/1999 09:00:11
By whom: eliz@is.elta.co.il



  webmaster     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010