[Interest] Pollution of compilation unit by Windows headers via qt_windows.h include

Alejandro Exojo suy at badopi.org
Tue May 10 22:54:16 CEST 2016


El Wednesday 04 May 2016, Roger Leigh escribió:
> I'd basically like to ask if anyone else has encountered issues like 
> this, and if so:
> 
> - is there any way of avoiding or hiding the includes?
> - any other known workarounds or suggestions?
> 
> I'd rather not undef things since my headers might be used by others and 
> they might need the defines.

I would just #undef the offending and annoying silly definitions. But if you 
really must, you can give a try to #pragma push_macro and pop_macro.

-- 
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net



More information about the Interest mailing list