>>This code gives me the following error for the line where the typedef is:
windows.h already defines TRUE and FALSE, which are #define's, not typedefs. I suppose you could undefine them before that typedef, but that could cause many other problems with win32 api functions.
>>or can I only use #if defined(_WIN32) && defined(PERFORMANCE_METING) for that?
Yes. But then you could have tried it yourself to find out.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343