diff options
author | Shevek <[email protected]> | 2014-09-11 12:11:23 -0700 |
---|---|---|
committer | Shevek <[email protected]> | 2014-09-11 12:22:48 -0700 |
commit | dc18feca4724d0a8958faafcb3b26f0da8f4f28b (patch) | |
tree | 4b89417c9f554be975f49343ef0db34198062e17 | |
parent | cccd60f37a31113a42372672670ce2a2bc529684 (diff) |
Handle framework includes.
-rw-r--r-- | src/main/java/org/anarres/cpp/Preprocessor.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/anarres/cpp/Preprocessor.java b/src/main/java/org/anarres/cpp/Preprocessor.java index 192ac45..18a0605 100644 --- a/src/main/java/org/anarres/cpp/Preprocessor.java +++ b/src/main/java/org/anarres/cpp/Preprocessor.java @@ -1149,6 +1149,15 @@ public class Preprocessor implements Closeable { } if (include(quoteincludepath, name)) return; + } else { + int idx = name.indexOf('/'); + if (idx != -1) { + String frameworkName = name.substring(0, idx); + String headerName = name.substring(idx + 1); + String headerPath = frameworkName + ".framework/Headers/" + headerName; + if (include(frameworkspath, headerPath)) + return; + } } if (include(sysincludepath, name)) |