A couple of yaks on my way: - Add bazel `BUILD` file to frozen - Rename some internal mjs functions because they conflicted with frozen PUBLISHED_FROM=fa403fb456b32a9e61af529030c09a12167b8200
@@ -0,0 +1,12 @@
+# -*- mode: gn -*-
+package(default_visibility = ["//visibility:public"])
+
+cc_library(
+ name = "frozen",
+ srcs = [
+ "frozen.c",
+ ],
+ hdrs = [
+ "frozen.h",
+)
@@ -47,18 +47,22 @@ typedef unsigned _int64 uint64_t;
#endif
#define PRId64 "I64d"
#define PRIu64 "I64u"
+#if !defined(SIZE_T_FMT)
#if _MSC_VER >= 1310
#define SIZE_T_FMT "Iu"
#else
#define SIZE_T_FMT "u"
+#endif
#else /* _WIN32 */
/* <inttypes.h> wants this for C++ */
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#define SIZE_T_FMT "zu"
#endif /* _WIN32 */
#define INT64_FMT PRId64