Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Wagenknecht2016-10-17 12:10:17 +0000
committerLakshmi Shanmugam2018-07-30 06:59:59 +0000
commita2c6e8173825b1dbbcb3cca08d1319b3a334919b (patch)
tree0defcc8c2200b045fa7d4de24738267ab4c097f6
parent3d6452f7cabaa5218196f97edaf378ba2b8555f9 (diff)
downloadeclipse.platform.swt-a2c6e8173825b1dbbcb3cca08d1319b3a334919b.tar.gz
eclipse.platform.swt-a2c6e8173825b1dbbcb3cca08d1319b3a334919b.tar.xz
eclipse.platform.swt-a2c6e8173825b1dbbcb3cca08d1319b3a334919b.zip
Bug 514191 - [Cocoa] [10.11] Bridge support files should be updated to latest macOS supported version
'struct FSRef*' should be 'FSRef*' Change-Id: I8d8d23c1d805a6feac325300abb0249dc39013e5 Signed-off-by: Gunnar Wagenknecht <gunnar@wagenknecht.org>
-rw-r--r--bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java b/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java
index fe2b248e35..8998d2af0b 100644
--- a/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java
+++ b/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java
@@ -317,6 +317,9 @@ private String getDeclaredType(NamedNodeMap map, Node location) {
// let's to a catch-all for common names here and handle other cases individually via mapping in extras file
value = value.replace("ObjectType", "id").replace("KeyType", "id");
+ // also invalid: 'struct FSRef*' should be 'FSRef*'
+ value = value.replace("struct ", "");
+
// also remove any white spaces
value = value.chars().filter((c)->!Character.isWhitespace(c)).mapToObj(c -> String.valueOf((char)c)).collect(Collectors.joining());

Back to the top