--- old/src/jdk.jextract/share/classes/com/sun/tools/jextract/JavaSourceFactory.java 2019-04-10 19:41:57.000000000 +0530 +++ new/src/jdk.jextract/share/classes/com/sun/tools/jextract/JavaSourceFactory.java 2019-04-10 19:41:56.000000000 +0530 @@ -382,7 +382,7 @@ MacroParser.Macro macro = macroTree.macro().get(); log.print(Level.FINE, () -> "Adding macro " + name); - addConstant(global_jsb, macroTree.location(), name, macro.type(), macro.value()); + addConstant(global_jsb, macroTree.location(), Utils.toMacroName(name), macro.type(), macro.value()); return true; }