Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
070d06c1
Commit
070d06c1
authored
Feb 15, 2010
by
Erik Verbruggen
Browse files
Changed BLOCKS undef on MacOS to work with system header files.
parent
e3e6797f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/toolchain.cpp
View file @
070d06c1
...
...
@@ -177,10 +177,11 @@ QByteArray GccToolChain::predefinedMacros()
#ifdef Q_OS_MAC
// Turn off flag indicating Apple's blocks support
int
idx
=
m_predefinedMacros
.
indexOf
(
"#define __BLOCKS__ 1"
);
const
QByteArray
blocksDefine
(
"#define __BLOCKS__ 1"
);
const
QByteArray
blocksUndefine
(
"#undef __BLOCKS__"
);
int
idx
=
m_predefinedMacros
.
indexOf
(
blocksDefine
);
if
(
idx
!=
-
1
)
{
idx
=
m_predefinedMacros
.
indexOf
(
'1'
,
idx
);
m_predefinedMacros
[
idx
]
=
'0'
;
m_predefinedMacros
.
replace
(
idx
,
blocksDefine
.
length
(),
blocksUndefine
);
}
// Define __strong and __weak (used for Apple's GC extension of C) to be empty
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment