w3m: Avoid depending on libgc-dev when building
[termux-packages] / packages / w3m / gc.h
diff --git a/packages/w3m/gc.h b/packages/w3m/gc.h
new file mode 100644 (file)
index 0000000..a8fe5f5
--- /dev/null
@@ -0,0 +1,8 @@
+/* A stub for gc.h to avoid depending on libgc for
+   the host-built mktable program. */
+#define GC_INIT()
+#define GC_MALLOC(arg) malloc(arg)
+#define GC_malloc(arg) malloc(arg)
+#define GC_MALLOC_ATOMIC(arg) malloc(arg)
+
+#define GC_free(arg) free(arg)