浏览代码

linux compilation fix

Nicolas Cannasse 8 年之前
父节点
当前提交
ef6bbc7fbe
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/std/buffer.c

+ 3 - 3
src/std/buffer.c

@@ -21,10 +21,10 @@
  */
  */
 #include <hl.h>
 #include <hl.h>
 
 
-#ifdef HL_VCC
-#	define PR_I64 L"%lld"
+#ifdef PRId64
+#	define PR_I64 USTR("%" PRId64)
 #else
 #else
-#	define PR_I64 u"%" PRId64
+#	define PR_I64 USTR("%lld")
 #endif
 #endif
 
 
 typedef struct _stringitem {
 typedef struct _stringitem {