Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Greg Chicares <gchicares-rphTv4pjVZMJGwgDXS7ZQA <at> public.gmane.org>
Subject: Re: windows.h dependency
Newsgroups: gmane.comp.gnu.mingw.user
Date: Wednesday 30th January 2008 06:51:46 UTC (over 9 years ago)
On 2008-01-30 04:37Z, NightStrike wrote:
> Is it required that every program #include  before using
> most of the mingw headers?

For many headers like , it doesn't matter. But for
msw-api headers it's common advice to include 
first. Try googling for
  "include windows.h before"
(including the double quotes) and you'll see that this
advice isn't specific to MinGW.

You could well ask why headers that depend on 
don't just include it themselves. In the early days of msw,
that would have been expensive, and preprocessors weren't
smart enough to avoid including the same file twice. These
days, I guess people have learned how to avoid the issue,
so the workaround persists and there isn't much demand to
change things.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
[email protected]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
 
CD: 2ms