www.digitalmars.com         C & C++   DMDScript  

c++.dos.16-bits - Not picking up #defines from dos.h

reply Don Messerli <Don_member pathlink.com> writes:
When I include <dos.h> in a source file and compile with the -mld switch, I get
errors for common defines like MK_FP and struct dosdate_t.  I see that their in
the include file.  I expect their not being defined because of one of the
conditionals in the header file.  Is there something I need to define before
including dos.h?



Thanks,
Don
Jun 26 2003
parent reply "Walter" <walter digitalmars.com> writes:
"Don Messerli" <Don_member pathlink.com> wrote in message
news:bdf46k$1tmm$1 digitaldaemon.com...
 When I include <dos.h> in a source file and compile with the -mld switch,

 errors for common defines like MK_FP and struct dosdate_t.  I see that

 the include file.  I expect their not being defined because of one of the
 conditionals in the header file.  Is there something I need to define

 including dos.h?

It works when I try it. What's the exact command line you use?
Jun 26 2003
next sibling parent Don Messerli <Don_member pathlink.com> writes:
In article <bdf6mp$20c7$1 digitaldaemon.com>, Walter says...
"Don Messerli" <Don_member pathlink.com> wrote in message
news:bdf46k$1tmm$1 digitaldaemon.com...
 When I include <dos.h> in a source file and compile with the -mld switch,

 errors for common defines like MK_FP and struct dosdate_t.  I see that

 the include file.  I expect their not being defined because of one of the
 conditionals in the header file.  Is there something I need to define

 including dos.h?

It works when I try it. What's the exact command line you use?

Jun 26 2003
prev sibling parent Don Messerli <Don_member pathlink.com> writes:
In article <bdf6mp$20c7$1 digitaldaemon.com>, Walter says...
"Don Messerli" <Don_member pathlink.com> wrote in message
news:bdf46k$1tmm$1 digitaldaemon.com...
 When I include <dos.h> in a source file and compile with the -mld switch,

 errors for common defines like MK_FP and struct dosdate_t.  I see that

 the include file.  I expect their not being defined because of one of the
 conditionals in the header file.  Is there something I need to define

 including dos.h?

It works when I try it. What's the exact command line you use?

Jun 26 2003