aboutsummaryrefslogtreecommitdiff
path: root/sonogram~
diff options
context:
space:
mode:
Diffstat (limited to 'sonogram~')
-rw-r--r--sonogram~/sonogram~-yves.c7
-rw-r--r--sonogram~/sonogram~.c7
2 files changed, 12 insertions, 2 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>
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>