[PyQt] Problem with sip.h redefining the 'ANY' symbol

Nate Reid gnatty7 at hotmail.com
Thu Feb 17 20:36:25 GMT 2011


In some bindings I'm working with, one of the header files that is included after sip.h has an enum who one of its values is called 'ANY'.  However, when sip is run, it includes its headers first and then redefines ANY before the wrapped source defines it in the enum, causing a compilation error.
Why does SIP need to do this, and if so, is there a workaround that doesn't involve editing the underlying C++ headers that are being included.  Consider them from a non-modifyable third party library.

siplib/sip.h
189:#if !defined(ANY)
190:#define ANY     void


Thanks!
-Nate
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110217/7f446b5c/attachment.html>


More information about the PyQt mailing list