瀏覽代碼

ensure that "display" is correctly defined

Nicolas Cannasse 13 年之前
父節點
當前提交
b2c337f2a7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      common.ml

+ 1 - 1
common.ml

@@ -95,7 +95,7 @@ let create v =
 		std_path = [];
 		class_path = [];
 		main_class = None;
-		defines = PMap.add "true" () PMap.empty;
+		defines = PMap.add "true" () (if !display_default then PMap.add "display" () PMap.empty else PMap.empty);
 		package_rules = PMap.empty;
 		file = "";
 		types = [];