Mail Archives: djgpp/1998/03/24/08:15:17
From: | Ian Chapman <ichapman AT nortel DOT ca>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | #define dj vs others
|
Date: | Tue, 24 Mar 1998 08:06:08 -0500
|
Organization: | Nortel
|
Lines: | 25
|
Message-ID: | <3517AFBF.45AE@nortel.ca>
|
Reply-To: | ichapman AT nortel DOT ca
|
NNTP-Posting-Host: | bcarib90.bnr.ca
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi all,
I have a little problem with compatibility between djgpp and MS,
Borland and Watcom.
Essentially this compiles on these compilers or so I'm told.
various.h
#define WIN32
#if _WIN32
#define MoveT0(a,b,c) MoveToEx(a,b,c,0)
#endif
#define _WIN32
file.cpp
MoveTo(this, that, other); // Warning from compiler
Of course I had to trace this from a pile of <dot.h>.
dj gives Warning implied declaration of MoveTo.
The fix is to put #define _WIN32 in front of #if
I'd be interested in any comments. It's probably in the mail archives
anyway.
Regards Ian.
- Raw text -