diff options
author | carmen rocco <ix9@users.sourceforge.net> | 2004-05-30 05:20:01 +0000 |
---|---|---|
committer | carmen rocco <ix9@users.sourceforge.net> | 2004-05-30 05:20:01 +0000 |
commit | 18230ab52e858c7cb21b7685cff05f05bd9d864e (patch) | |
tree | 00fca92c94560bb891b85894bf0b686a9f8eb8da /cooled~ | |
parent | e9edaae480da9644c4377bd6eaa8d940ee17e4e2 (diff) |
trying out the roast of these NT Tweak .
svn path=/trunk/externals/unauthorized/; revision=1793
Diffstat (limited to 'cooled~')
-rw-r--r-- | cooled~/cooled~.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cooled~/cooled~.c b/cooled~/cooled~.c index 51e97f3..1e67ad3 100644 --- a/cooled~/cooled~.c +++ b/cooled~/cooled~.c @@ -43,7 +43,11 @@ #include <unistd.h> #endif #ifdef NT -#define M_PI 3.14159265358979323846 +#include <windows.h> +int usleep (unsigned int us) { + Sleep((long)(us/1000.)); + return 0; +} #endif #include <math.h> @@ -1363,8 +1367,13 @@ void cooled_tilde_setup(void) cooled_widgetbehavior.w_deletefn = cooled_delete; cooled_widgetbehavior.w_visfn = cooled_vis; cooled_widgetbehavior.w_clickfn = cooled_click; +#if PD_MINOR_VERSION >= 37 + class_setpropertiesfn(cooled_class, cooled_properties); + class_setsavefn(cooled_class, cooled_save); +#else cooled_widgetbehavior.w_propertiesfn = cooled_properties; cooled_widgetbehavior.w_savefn = cooled_save; +#endif CLASS_MAINSIGNALIN( cooled_class, t_cooled, x_f ); class_addmethod(cooled_class, (t_method)cooled_dsp, gensym("dsp"), A_NULL); |