Update of /cvsroot/pure-data/externals/smlib/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15397/source
Modified Files: SMLib.c defines.h Log Message: fixed up files to compile on Darwin and fit into the standards
Index: defines.h =================================================================== RCS file: /cvsroot/pure-data/externals/smlib/source/defines.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** defines.h 28 Nov 2005 16:53:16 -0000 1.1.1.1 --- defines.h 28 Nov 2005 20:53:10 -0000 1.2 *************** *** 1,3 **** ! //#include <m_pd.h> #include "m_imp.h" #include <math.h> --- 1,3 ---- ! #include <m_pd.h> #include "m_imp.h" #include <math.h> *************** *** 6,10 ****
/* NT and OSX don't appear to have single-precision ANSI math */ ! #if defined(WIN32) || defined(MACOSX) #define sinf sin #define cosf cos --- 6,10 ----
/* NT and OSX don't appear to have single-precision ANSI math */ ! #if defined(WIN32) || defined(__APPLE__) #define sinf sin #define cosf cos
Index: SMLib.c =================================================================== RCS file: /cvsroot/pure-data/externals/smlib/source/SMLib.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SMLib.c 28 Nov 2005 16:53:25 -0000 1.1.1.1 --- SMLib.c 28 Nov 2005 20:53:10 -0000 1.2 *************** *** 168,172 **** --- 168,176 ---- }
+ #ifdef WIN32 __declspec(dllexport) void __cdecl SMLib_setup( void) + #else + void SMLib_setup( void) + #endif { // dummy object for help-system