Make that generated files are path independent.
[nit.git] / src / compiling / compiling.nit
index f72eaea..59503a7 100644 (file)
@@ -109,8 +109,8 @@ redef class MMSrcModule
                compile_mod_to_c(v)
                var f = new OFStream.open("{tc.base_dir}/{name}.{tc.ext_prefix}_sep.h")
                f.write("/* This C header file is generated by NIT to compile modules and programs that requires {name}. */\n")
-               f.write("#ifndef {name}_{tc.ext_prefix}_sep\n")
-               f.write("#define {name}_{tc.ext_prefix}_sep\n")
+               f.write("#ifndef {name}_sep\n")
+               f.write("#define {name}_sep\n")
                for m in mhe.direct_greaters do f.write("#include \"{m.name}.{tc.ext_prefix}_sep.h\"\n")
                f.write(v.ctx.decls.join("\n"))
                f.write("\n#endif\n")