[Scummvm-devel] Header files.

Max Horn max at quendi.de
Sun Dec 21 12:09:01 CET 2003


Am Sonntag, 21.12.03 um 20:14 Uhr schrieb Marcus Comstedt:

>
> Nicolas Noble <pixel at nobis-crew.org> writes:
>
>> Actually, M$VC uses that header in order to precompile the header 
>> files
>> (you know, all the templates and inlines). So it has a strange 
>> behavior
>> concerning this file. You actually have to include it before any other
>> include (not on the "first" line though)
>
> Yes, this is what I keep hearing, but I've not yet heard any
> detailed explanation of how this "strange behaviour" manifests
> itself.  What, exactly, happens if you add
>
>   #include "foobar.h"
>
> where foobar.h is an empty file, before the include of "stdafx.h"?
> I'm curious how anyone could make a C compiler that would break on
> something like that.
>
Well, MS has apparently a lot of expertise in that. In fact, strictly 
spoken MSVC doesn't compile C nor C++, but rather a language relatively 
similar to them... compare also with about every other standard MS 
"implements" (See Also: Embrace and Extend) :-)


Cheers,

Max





More information about the Scummvm-devel mailing list