using #define in a .pch
Posted
by ML
on Stack Overflow
See other posts from Stack Overflow
or by ML
Published on 2010-04-05T22:56:27Z
Indexed on
2010/04/05
23:03 UTC
Read the original article
Hit count: 381
precompiled-headers
|c++
Hello All,
If I define something in a pre-compiled header like:
#define __BUILD_MAC__
and then in a header file do:
#ifdef __BUILD_MAC__
typedef void* HINSTANCE;
#endif
This should work. But for some reason It isn't. I know because when I compile I get errors about HINSTANCE not naming a type.
Do I need to do anything else to make these defines available?
© Stack Overflow or respective owner