Macro redefinition

When I run the project this error happen in log:

1>c:\documents and settings\user\meus documentos\visual studio 2008\projects\iradoogrep3\splash.cpp(23) : warning C4005: 'LWA_COLORKEY' : macro redefinition
1>c:\arquivos de programas\microsoft sdks\windows\v6.0a\include\winuser.h(3996) : see previous definition of 'LWA_COLORKEY'



#define LWA_COLORKEY 1 // That's the line 23 in splash.cpp file:


I don't know exactly what is.
How can I fix it?

That macro was already defined in winuser.h, line 3996
thx for the answer. Yes Bazzy, it is defined in winuser.h, like this:

#define LWA_COLORKEY 0x00000001



But in the Splash.cpp is also defined as follows:

#define LWA_COLORKEY 1


What should I do in this case? Delete one of them or just modify them?
Last edited on
As it happens, they have the same value. In this case I'd change splash.cpp to:

1
2
3
#ifndef LWA_COLORKEY
#define LWA_COLORKEY 1
#endif 
The error was solved. I used that way kbw.

#ifndef LWA_COLORKEY
#define LWA_COLORKEY 1
#endif

Now I gonna check the other runs. thx
Topic archived. No new replies allowed.