From 59fd837cdf4295dce7e4c1b9481ef2802df2771f Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Thu, 17 Apr 2003 02:38:13 +0000 Subject: "" svn path=/trunk/; revision=576 --- externals/grill/flext/flext.cw | Bin 509213 -> 572167 bytes externals/grill/flext/readme.txt | 3 +++ externals/grill/flext/source/flcwmax-x.h | 1 + externals/grill/flext/source/flcwpd-x-thr.h | 31 ++++++++++++++++++++++++ externals/grill/flext/source/flcwpd-x.h | 36 ++++++++++++++++++++++++++++ externals/grill/flext/source/fldoxygen.h | 2 +- externals/grill/flext/source/flprefix.h | 11 +++++++-- externals/grill/flext/source/flutil.cpp | 2 +- 8 files changed, 82 insertions(+), 4 deletions(-) create mode 100755 externals/grill/flext/source/flcwpd-x-thr.h create mode 100755 externals/grill/flext/source/flcwpd-x.h (limited to 'externals/grill/flext') diff --git a/externals/grill/flext/flext.cw b/externals/grill/flext/flext.cw index 0776b509..e35219e5 100644 Binary files a/externals/grill/flext/flext.cw and b/externals/grill/flext/flext.cw differ diff --git a/externals/grill/flext/readme.txt b/externals/grill/flext/readme.txt index 32d783d5..362d7a47 100644 --- a/externals/grill/flext/readme.txt +++ b/externals/grill/flext/readme.txt @@ -114,6 +114,9 @@ see flext.h, fldefs.h and flclass.h for the documented base definitions and clas Version history: +0.4.4: +- some fixes for CodeWarrior Mach-O compilation + 0.4.3: - added forgotten flext_base::ToQueueString method - added timer functions and flext::Timer class diff --git a/externals/grill/flext/source/flcwmax-x.h b/externals/grill/flext/source/flcwmax-x.h index bffff8d3..eec2aa7e 100755 --- a/externals/grill/flext/source/flcwmax-x.h +++ b/externals/grill/flext/source/flcwmax-x.h @@ -17,6 +17,7 @@ WARRANTIES, see the file, "license.txt," in this distribution. #define TARGET_API_MAC_CARBON 1 #define _POSIX_C_SOURCE +#define _POSIX_SOURCE #include "flcwmax.h" diff --git a/externals/grill/flext/source/flcwpd-x-thr.h b/externals/grill/flext/source/flcwpd-x-thr.h new file mode 100755 index 00000000..56a193ef --- /dev/null +++ b/externals/grill/flext/source/flcwpd-x-thr.h @@ -0,0 +1,31 @@ +/* + +flext - C++ layer for Max/MSP and pd (pure data) externals + +Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net) +For information on usage and redistribution, and for a DISCLAIMER OF ALL +WARRANTIES, see the file, "license.txt," in this distribution. + +*/ + +/* This is the prefix file for CodeWarrior projects - OS X version */ + +#ifndef _FLEXT_CW_PD_X_THR_H +#define _FLEXT_CW_PD_X_THR_H + +#define FLEXT_THREADS + +#if 0 +/* + old CodeWarrior version (<= 6) don't have sigset_t defined which + is needed for pthreads +*/ +#if defined(__MWERKS__) && (__MWERKS__ <= 0x6000) + typedef unsigned int sigset_t; + #define _CW_NOPRECOMP // no precompiled headers +#endif +#endif + +#include "flcwpd-x.h" + +#endif diff --git a/externals/grill/flext/source/flcwpd-x.h b/externals/grill/flext/source/flcwpd-x.h new file mode 100755 index 00000000..3d7256f1 --- /dev/null +++ b/externals/grill/flext/source/flcwpd-x.h @@ -0,0 +1,36 @@ +/* + +flext - C++ layer for Max/MSP and pd (pure data) externals + +Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net) +For information on usage and redistribution, and for a DISCLAIMER OF ALL +WARRANTIES, see the file, "license.txt," in this distribution. + +*/ + +/* This is the prefix file for CodeWarrior projects - OS X version */ + +#ifndef _FLEXT_CW_PD_X_H +#define _FLEXT_CW_PD_X_H + +#ifndef __MWERKS__ + #error "This header file is for CodeWarrior only." +#endif + +#define FLEXT_SYS 2 + +#define TARGET_API_MAC_CARBON 1 +#define _POSIX_C_SOURCE + +#ifndef _CW_NOPRECOMP +// #include +// #include +#endif + +#if __option(sym) || !__option(opt_dead_code) + #define FLEXT_DEBUG +#endif + +/* #define _LOG */ + +#endif diff --git a/externals/grill/flext/source/fldoxygen.h b/externals/grill/flext/source/fldoxygen.h index d3574842..1bfef48e 100644 --- a/externals/grill/flext/source/fldoxygen.h +++ b/externals/grill/flext/source/fldoxygen.h @@ -47,7 +47,7 @@ Currently, flext supports
  • PD on Windows with Microsoft Visual C++, Borland C++ and gcc(cygwin) compilers
  • PD on Linux with gcc -
  • PD on Mac OSX with gcc (Project Builder to follow soon) +
  • PD on Mac OSX with gcc (makefile or Project Builder)
  • Max/MSP on Mac OS9 and OSX with Metrowerks CodeWarrior
diff --git a/externals/grill/flext/source/flprefix.h b/externals/grill/flext/source/flprefix.h index 028c8df9..6c2e2999 100755 --- a/externals/grill/flext/source/flprefix.h +++ b/externals/grill/flext/source/flprefix.h @@ -141,8 +141,15 @@ WARRANTIES, see the file, "license.txt," in this distribution. #elif defined(__MWERKS__) // Metrowerks CodeWarrior - #ifndef __CONDITIONALMACROS__ - #include + #ifdef __MACH__ + // quick fix for OSX Mach-O + #define TARGET_CPU_PPC 1 + #define TARGET_OS_MAC 1 + #define TARGET_API_MAC_OSX 1 + #else + #ifndef __CONDITIONALMACROS__ + #include + #endif #endif #ifndef FLEXT_CPU diff --git a/externals/grill/flext/source/flutil.cpp b/externals/grill/flext/source/flutil.cpp index 5d9b20d7..5081c245 100644 --- a/externals/grill/flext/source/flutil.cpp +++ b/externals/grill/flext/source/flutil.cpp @@ -18,7 +18,7 @@ WARRANTIES, see the file, "license.txt," in this distribution. #if FLEXT_OS == FLEXT_OS_WIN #include #elif FLEXT_OS == FLEXT_OS_MAC - #ifdef __MWERKS__ + #if FLEXT_OSAPI != FLEXT_OSAPI_MAC_OSX #include #else #include -- cgit v1.2.1