diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-08-22 19:20:27 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-08-22 19:20:27 +0000 |
commit | 76fd627a763f708d764d5f70b3c71cebc8bdbf4f (patch) | |
tree | 40f7433a0581c9015f9e947910a3f61d992c9d64 /externals/grill/flext/source/flfeatures.h | |
parent | 4cde391f5f1ba80c803fc02adece857e5eb720f7 (diff) |
adapted for pd-devel 0.39
- better handling of click callback
- more compatible handling of attributes in patcher (hiding is now an option - define FLEXT_ATTRHIDE)
added flfeatures.h for compile-time version-specific feature detection
changes for devel_0_39 support
svn path=/trunk/; revision=3445
Diffstat (limited to 'externals/grill/flext/source/flfeatures.h')
-rw-r--r-- | externals/grill/flext/source/flfeatures.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/externals/grill/flext/source/flfeatures.h b/externals/grill/flext/source/flfeatures.h new file mode 100644 index 00000000..915f44a9 --- /dev/null +++ b/externals/grill/flext/source/flfeatures.h @@ -0,0 +1,34 @@ +/*
+
+flext - C++ layer for Max/MSP and pd (pure data) externals
+
+Copyright (c) 2001-2005 Thomas Grill (gr@grrrr.org)
+For information on usage and redistribution, and for a DISCLAIMER OF ALL
+WARRANTIES, see the file, "license.txt," in this distribution.
+
+*/
+
+/*! \file flfeatures.h
+ \brief Detect version-specific features.
+*/
+
+#ifndef __FLFEATURES_H
+#define __FLFEATURES_H
+
+// check if PD API supports buffer dirty time
+#if defined(PD_DEVEL_VERSION) && defined(PD_MAJOR_VERSION) && defined(PD_MINOR_VERSION)
+#if PD_MINOR_VERSION >= 36 && PD_MINOR_VERSION <= 38
+// array locks have been removed in devel_0_39
+ #define _FLEXT_HAVE_PD_GARRAYLOCKS
+#endif
+#if PD_MINOR_VERSION >= 36
+ #define _FLEXT_HAVE_PD_GARRAYUPDATETIME
+#endif
+#endif
+
+#if defined(MAC_VERSION) || defined(WIN_VERSION)
+ // not for OS9
+ #define _FLEXT_HAVE_MAX_INUSEFLAG
+#endif
+
+#endif
|