diff options
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
|