From c1ca9e1cdab9279cdda720aac3a31870e02a7302 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 28 Nov 2005 20:53:10 +0000 Subject: fixed up files to compile on Darwin and fit into the standards svn path=/trunk/externals/smlib/; revision=4071 --- source/SMLib.c | 4 ++++ source/defines.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'source') 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 +#include #include "m_imp.h" #include #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 -- cgit v1.2.1