aboutsummaryrefslogtreecommitdiff
path: root/sonogram~
diff options
context:
space:
mode:
authorcarmen rocco <ix9@users.sourceforge.net>2004-05-30 05:20:01 +0000
committercarmen rocco <ix9@users.sourceforge.net>2004-05-30 05:20:01 +0000
commit18230ab52e858c7cb21b7685cff05f05bd9d864e (patch)
tree00fca92c94560bb891b85894bf0b686a9f8eb8da /sonogram~
parente9edaae480da9644c4377bd6eaa8d940ee17e4e2 (diff)
trying out the roast of these NT Tweak .
svn path=/trunk/externals/unauthorized/; revision=1793
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>