From 4985ae92eea0eb7609a2449d7e147f69b7134b50 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Mon, 2 Dec 2002 17:32:50 +0000 Subject: *** empty log message *** svn path=/trunk/; revision=265 --- externals/grill/flext/source/flcwmax.h | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) (limited to 'externals/grill/flext/source/flcwmax.h') diff --git a/externals/grill/flext/source/flcwmax.h b/externals/grill/flext/source/flcwmax.h index 5ef0b298..184803ff 100644 --- a/externals/grill/flext/source/flcwmax.h +++ b/externals/grill/flext/source/flcwmax.h @@ -13,14 +13,36 @@ WARRANTIES, see the file, "license.txt," in this distribution. #ifndef _FLEXT_CW_MAX_H #define _FLEXT_CW_MAX_H -#include - -#define MAXMSP +#ifndef __MWERKS__ + #error "This header file is for CodeWarrior only." +#endif -#if !defined(__OPTIMIZE__) || __OPTIMIZE__ == 0 -#define _DEBUG +#ifndef _CW_NOPRECOMP + #include +#endif + +#if __option(sym) || !__option(opt_dead_code) + #define _DEBUG #endif +#ifdef MAXMSP + #pragma message("#define MAXMSP is deprecated, use #define FLEXT_SYS_MAX instead") +#else + #define FLEXT_SYS_MAX + // this is deprecated (but still necessary) + #define MAXMSP +#endif + +#if __POWERPC__ + #define FLEXT_PLATFORM_MAC +#elif __INTEL__ + #define FLEXT_PLATFORM_WIN + // this is necessary for Cycling headers when compiling for Windows + #define WIN_VERSION 1 +#else + #error "Target platform not supported." +#endif + /* #define _LOG */ #endif -- cgit v1.2.1