ref: 7bc888ae5c8b31f7ccf657a7184b7b3957d48fba
parent: 723ca0d4b4da52cf0c52e84fa9b81ba11ae5ad31
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Thu Dec 3 18:26:29 EST 2020
forgot a file
--- /dev/null
+++ b/common.h
@@ -1,0 +1,33 @@
+#ifdef __plan9__
+#include <u.h>
+#include <libc.h>
+#include <stdio.h>
+typedef s64int int64_t;
+typedef u32int uint32_t;
+typedef s32int int32_t;
+typedef u16int uint16_t;
+typedef s16int int16_t;
+typedef u8int uint8_t;
+typedef s8int int8_t;
+typedef ulong size_t;
+typedef enum { false, true } bool;
+#define lockMixer()
+#define unlockMixer()
+#define openMixer(f,s) true
+#define closeMixer()
+static double
+round(double d)
+{
+ modf(d > 0 ? d+1.0 : d-1.0, &d);
+ return d;
+}
+#else
+#include <assert.h>
+#include <math.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+#define USED(x) (void)x
+#endif