aboutsummaryrefslogtreecommitdiff
path: root/sonogram~/sonogram~-yves.c
diff options
context:
space:
mode:
Diffstat (limited to 'sonogram~/sonogram~-yves.c')
-rw-r--r--sonogram~/sonogram~-yves.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sonogram~/sonogram~-yves.c b/sonogram~/sonogram~-yves.c
index 02e5f47..df957b1 100644
--- a/sonogram~/sonogram~-yves.c
+++ b/sonogram~/sonogram~-yves.c
@@ -46,7 +46,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>