aboutsummaryrefslogtreecommitdiff
path: root/sonogram~/sonogram~.c
diff options
context:
space:
mode:
Diffstat (limited to 'sonogram~/sonogram~.c')
-rw-r--r--sonogram~/sonogram~.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sonogram~/sonogram~.c b/sonogram~/sonogram~.c
index a0b8472..7a41da7 100644
--- a/sonogram~/sonogram~.c
+++ b/sonogram~/sonogram~.c
@@ -44,7 +44,12 @@
#include <unistd.h>
#endif
#ifdef NT
-#define M_PI 3.14159265358979323846
+#define random rand
+#include <windows.h>
+static int usleep (unsigned int us) {
+ Sleep((long)(us/1000.));
+ return 0;
+}
#endif
#include <math.h>