diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-08-01 15:43:53 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2015-10-14 15:23:30 +0200 |
commit | d2628954d9b7639382949d3b5e6a9bf138f54abc (patch) | |
tree | 0b43cd5884d45c820bdfe11f2e5b010cd2c89d1e /sonogram~.c | |
parent | 8d40d65f0688a8731edbf51b63f066917e27ac30 (diff) |
got everything building under MinGW
svn path=/trunk/externals/unauthorized/; revision=15185
Diffstat (limited to 'sonogram~.c')
-rw-r--r-- | sonogram~.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sonogram~.c b/sonogram~.c index 4085b34..18bf3c6 100644 --- a/sonogram~.c +++ b/sonogram~.c @@ -44,13 +44,16 @@ #endif #include <ctype.h> #include <pthread.h> -#ifdef UNIX -#include <unistd.h> +#include <math.h> + +#ifdef _WIN32 +# include <io.h> +# define random rand #endif -#ifdef NT -#define M_PI 3.14159265358979323846 + +#ifndef _MSC_VER /* only MSVC doesn't have unistd.h */ +# include <unistd.h> #endif -#include <math.h> #include "m_pd.h" #include "m_imp.h" |