Skip to content

Commit 7b8ee13

Browse files
pieperjcfr
authored andcommitted
Fix mac build error with C standard lib macros
This fix errors of that sort: moc_PythonQtStdDecorators.cxx:152:25: error: expected unqualified-id case 4: _t->emit((*reinterpret_cast< QObject*(*)>(_a[1])),(*reinterpret_cast< const
1 parent 654f324 commit 7b8ee13

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/PythonQtInstanceWrapper.h

+23
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,29 @@
4545
#include "PythonQtPythonInclude.h"
4646

4747
#include "PythonQtSystem.h"
48+
49+
/*
50+
* The following undefs for C standard library macros prevent
51+
* build errors of the following type on mac ox 10.7.4 and XCode 4.3.3
52+
*
53+
/usr/include/c++/4.2.1/bits/localefwd.h:57:21: error: too many arguments provided to function-like macro invocation
54+
isspace(_CharT, const locale&);
55+
^
56+
/usr/include/c++/4.2.1/bits/localefwd.h:56:5: error: 'inline' can only appear on functions
57+
inline bool
58+
^
59+
/usr/include/c++/4.2.1/bits/localefwd.h:57:5: error: variable 'isspace' declared as a template
60+
isspace(_CharT, const locale&);
61+
^
62+
*/
63+
#undef isspace
64+
#undef isupper
65+
#undef islower
66+
#undef isalpha
67+
#undef isalnum
68+
#undef toupper
69+
#undef tolower
70+
4871
#include <QPointer>
4972

5073
#include "structmember.h"

0 commit comments

Comments
 (0)