aboutsummaryrefslogtreecommitdiff
path: root/cooled~
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-12-18 18:57:13 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-12-18 18:57:13 +0000
commitaa82236dd093743bd2973f8b61127582aaf6e96f (patch)
treedc74f2de6e61dc04861b8d6df53daf8ed6feb2ee /cooled~
parentb13e2d6c3a525918ed0816c41433509477c9912a (diff)
lots of MinGW fixes for RC6
svn path=/trunk/externals/unauthorized/; revision=4250
Diffstat (limited to 'cooled~')
-rw-r--r--cooled~/cooled~.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/cooled~/cooled~.c b/cooled~/cooled~.c
index 87b5a68..f0d966b 100644
--- a/cooled~/cooled~.c
+++ b/cooled~/cooled~.c
@@ -45,13 +45,17 @@
#include <ctype.h>
#include <pthread.h>
-#ifdef UNIX
+#ifdef _WIN32
+#include <io.h>
+#define usleep(a) _sleep(a/1000)
+#else
#include <unistd.h>
#endif
-#ifdef NT
+
+#include <math.h>
+#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
-#include <math.h>
#include "m_pd.h"
#include "m_imp.h"