summaryrefslogtreecommitdiffhomepage
path: root/src/internal/nt64/libc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/nt64/libc.c')
-rw-r--r--src/internal/nt64/libc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/internal/nt64/libc.c b/src/internal/nt64/libc.c
new file mode 100644
index 0000000..43face8
--- /dev/null
+++ b/src/internal/nt64/libc.c
@@ -0,0 +1,7 @@
+#include "../libc.h"
+
+/* todo: teach the linker to export weak symbols */
+#undef weak_alias
+#define weak_alias(old,new) extern __typeof(old) new __attribute__((alias(#old)))
+
+#include "../libc.c"