-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libco #defines conflict with Qt #15
Comments
Thank you for filing this. Since that's a macro, namespacing won't really help much. Also, we're clients of libco so modifying it would be a last resort (although possibly desirable, ultimately, since this is a consequence of us using it as a header only / all inline library, which is a modification in and of itself). What I think can be done is something like this: #if defined(section)
#undef section
#endif
#include <whatever_qt_file_leads_to_qstring.h_being_included> |
Hi Alex, how about #include "../../../../external/libco/libco.h"
#undef section in fiber.hpp:24 ? Works for me :) |
@franjesus yup, that works too and is cleaner, but I've convinced myself that having a macro squat on such a common name is a faux pas, so I'll bite the bullet and just rename the macro to |
Thanks! makes sense |
These 2 symbols are colliding, is there a "nice" way to put libco in its own namespace? (I guess not since it's C89)
The text was updated successfully, but these errors were encountered: