SlimDX/slimdx

DEFINE_ENUM_FLAG_OPERATORS macro, multiple definitions

Closed this issue · 2 comments

At least with the beta 7.0 Windows SDK, this macro is already pulled in
from winnt.h and doesn't need to be forward declared.

Reason: 

#define DEFINE_ENUM_FLAG_OPERATORS(x)

Removing this line from the top of many of the .cpp files in the direct2d
folder fixes the issue. I'm unsure of any side effects this might have.

Original issue reported on code.google.com by carl.ad...@gmail.com on 1 Apr 2009 at 10:40

Just did a full rebuild and this isn't an issue for us. I think whichever 
combination
of headers I'm using doesn't include this. 

I'm going to leave these in; it's much easier to do a find/replace to remove 
them
than to add them back in again.

Original comment by Mike.Popoloski on 2 Apr 2009 at 1:37

  • Changed state: WontFix
Fair enough. Although an #ifndef block would stop the build log spam.

Original comment by carl.ad...@gmail.com on 2 Apr 2009 at 9:41