diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-11-28 20:53:10 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-11-28 20:53:10 +0000 |
commit | c1ca9e1cdab9279cdda720aac3a31870e02a7302 (patch) | |
tree | d5b561c1cae19e3ac96b6dd2348fc677218f30e6 /source | |
parent | da1f0065d07250b86b9a761b012987e4825f491f (diff) |
fixed up files to compile on Darwin and fit into the standards
svn path=/trunk/externals/smlib/; revision=4071
Diffstat (limited to 'source')
-rw-r--r-- | source/SMLib.c | 4 | ||||
-rw-r--r-- | source/defines.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/source/SMLib.c b/source/SMLib.c index 1771395..baf4c8a 100644 --- a/source/SMLib.c +++ b/source/SMLib.c @@ -167,7 +167,11 @@ static void *SMLib_new() return (void *)x;
}
+#ifdef WIN32
__declspec(dllexport) void __cdecl SMLib_setup( void)
+#else
+void SMLib_setup( void)
+#endif
{
// dummy object for help-system
SMLib_class = class_new(gensym("SMLib"),
diff --git a/source/defines.h b/source/defines.h index e819f88..ecc208b 100644 --- a/source/defines.h +++ b/source/defines.h @@ -1,11 +1,11 @@ -//#include <m_pd.h>
+#include <m_pd.h>
#include "m_imp.h"
#include <math.h>
#define MAXFLOAT 1e18f;
#define LOGTEN 2.302585092994
/* NT and OSX don't appear to have single-precision ANSI math */
-#if defined(WIN32) || defined(MACOSX)
+#if defined(WIN32) || defined(__APPLE__)
#define sinf sin
#define cosf cos
#define atanf atan
|