This commit is contained in:
Roberto Raggi
2010-02-01 14:01:17 +01:00
parent f672bff338
commit da91bac28c

View File

@@ -179,9 +179,9 @@ QByteArray GccToolChain::predefinedMacros()
// Turn off flag indicating Apple's blocks support
int idx = m_predefinedMacros.indexOf("#define __BLOCKS__ 1");
if (idx != -1) {
idx = m_predefinedMacros.indexOf(QLatin1Char('1'), idx);
idx = m_predefinedMacros.indexOf('1', idx);
m_predefinedMacros[idx] = '0';
}-
}
// Define __strong and __weak (used for Apple's GC extension of C) to be empty
m_predefinedMacros.append("#define __strong\n");