summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/anarres/cpp/Preprocessor.java9
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))