From 18230ab52e858c7cb21b7685cff05f05bd9d864e Mon Sep 17 00:00:00 2001 From: carmen rocco Date: Sun, 30 May 2004 05:20:01 +0000 Subject: trying out the roast of these NT Tweak . svn path=/trunk/externals/unauthorized/; revision=1793 --- sonogram~/sonogram~-yves.c | 7 ++++++- sonogram~/sonogram~.c | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'sonogram~') 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 #endif #ifdef NT -#define M_PI 3.14159265358979323846 +#define random rand +#include +static int usleep (unsigned int us) { + Sleep((long)(us/1000.)); + return 0; +} #endif #include 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 #endif #ifdef NT -#define M_PI 3.14159265358979323846 +#define random rand +#include +static int usleep (unsigned int us) { + Sleep((long)(us/1000.)); + return 0; +} #endif #include -- cgit v1.2.1