Other's library #define naming conflict

前端 未结 4 1916
忘掉有多难
忘掉有多难 2020-12-03 23:14

Hard to come up with a proper title for this problem. Anyway...

I\'m currently working on a GUI for my games in SDL. I\'ve finished the software drawing and was on m

4条回答
  •  渐次进展
    2020-12-03 23:45

    There is no general way of avoiding this problem - once you #include a header file using the preprocessor it can redefine any name it likes, and there is nothing you can do about it. You can #undef the name, but that assumes you know the name was #defined in the first place.

提交回复
热议问题