diff options
Diffstat (limited to 'src/java/org/anarres/cpp/Main.java')
-rw-r--r-- | src/java/org/anarres/cpp/Main.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/java/org/anarres/cpp/Main.java b/src/java/org/anarres/cpp/Main.java index b7e11df..0b97f4e 100644 --- a/src/java/org/anarres/cpp/Main.java +++ b/src/java/org/anarres/cpp/Main.java @@ -101,8 +101,9 @@ public class Main { pp.addFeature(Feature.LINEMARKERS); pp.addWarning(Warning.IMPORT); pp.setListener(new PreprocessorListener()); - pp.addMacro("__JCPP__"); + pp.getSystemIncludePath().add("/usr/local/include"); + pp.getSystemIncludePath().add("/usr/include"); GETOPT: while ((c = g.getopt()) != -1) { switch (c) { @@ -157,11 +158,6 @@ public class Main { } } - List<String> path = pp.getSystemIncludePath(); - path.add("/usr/local/include"); - path.add("/usr/include"); - // path.add("/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include"); - for (int i = g.getOptind(); i < args.length; i++) pp.addInput(new FileLexerSource(new File(args[i]))); |