mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
for bug 183847 - removing the platform check from GCC/GPPParserExtensionConfiguration
This commit is contained in:
parent
6ffd53dea0
commit
fe5583158b
2 changed files with 3 additions and 9 deletions
|
@ -14,7 +14,6 @@ package org.eclipse.cdt.core.dom.parser.c;
|
|||
import org.eclipse.cdt.core.dom.parser.IBuiltinBindingsProvider;
|
||||
import org.eclipse.cdt.core.parser.ParserLanguage;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.GCCBuiltinSymbolProvider;
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
|
||||
/**
|
||||
* @author jcamelon
|
||||
|
@ -67,10 +66,7 @@ public class GCCParserExtensionConfiguration extends AbstractCParserExtensionCon
|
|||
* @see org.eclipse.cdt.core.dom.parser.c.AbstractCParserExtensionConfiguration#supportDeclspecSpecifiers()
|
||||
*/
|
||||
public boolean supportDeclspecSpecifiers() {
|
||||
// XXX Yes, this is a hack -- should use the target platform
|
||||
if (Platform.getOS().equals(Platform.OS_WIN32))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -14,7 +14,6 @@ package org.eclipse.cdt.core.dom.parser.cpp;
|
|||
import org.eclipse.cdt.core.dom.parser.IBuiltinBindingsProvider;
|
||||
import org.eclipse.cdt.core.parser.ParserLanguage;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.GCCBuiltinSymbolProvider;
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
|
||||
/**
|
||||
* @author jcamelon
|
||||
|
@ -102,8 +101,7 @@ public class GPPParserExtensionConfiguration extends AbstractCPPParserExtensionC
|
|||
* @see org.eclipse.cdt.core.dom.parser.cpp.AbstractCPPParserExtensionConfiguration#supportDeclspecSpecifiers()
|
||||
*/
|
||||
public boolean supportDeclspecSpecifiers() {
|
||||
// XXX: a hack, should use the target's platform
|
||||
return Platform.getOS().equals(Platform.OS_WIN32);
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue