aboutsummaryrefslogtreecommitdiff
path: root/cooled~/cooled~.c
diff options
context:
space:
mode:
Diffstat (limited to 'cooled~/cooled~.c')
-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"