Update of /cvsroot/pure-data/externals/unauthorized/cooled~ In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16368/cooled~
Modified Files: cooled~.c Log Message: trying out the roast of these NT Tweak .
Index: cooled~.c =================================================================== RCS file: /cvsroot/pure-data/externals/unauthorized/cooled~/cooled~.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** cooled~.c 30 Mar 2004 04:25:10 -0000 1.6 --- cooled~.c 30 May 2004 05:19:59 -0000 1.7 *************** *** 44,48 **** #endif #ifdef NT ! #define M_PI 3.14159265358979323846 #endif #include <math.h> --- 44,52 ---- #endif #ifdef NT ! #include <windows.h> ! int usleep (unsigned int us) { ! Sleep((long)(us/1000.)); ! return 0; ! } #endif #include <math.h> *************** *** 1364,1369 **** --- 1368,1378 ---- 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 );