aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-07-17 11:33:38 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-07-17 11:33:38 +0000
commitf29a360e5aaaeeb75ec191a4163905a8cf44212a (patch)
treea7a4c2b7e7f0f77de08c637b6bbed99884186ffd
parent8c18727fdeed6d3925e3d2649ceb4e6540605a77 (diff)
changes for devel_0_39 support
svn path=/trunk/; revision=3357
-rw-r--r--externals/grill/flext/source/flbuf.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/externals/grill/flext/source/flbuf.cpp b/externals/grill/flext/source/flbuf.cpp
index 4aafacfe..c19909b8 100644
--- a/externals/grill/flext/source/flbuf.cpp
+++ b/externals/grill/flext/source/flbuf.cpp
@@ -22,8 +22,10 @@ WARRANTIES, see the file, "license.txt," in this distribution.
// 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
- #define FLEXT_PDBUFDIRTYTIME
+#if PD_MINOR_VERSION >= 36 && PD_MINOR_VERSION <= 38
+// garray_updatetime has been removed in devel_0_39
+ #define FLEXT_HAVE_GARRAYUPDATETIME
+ #define FLEXT_HAVE_GARRAYLOCKS
#endif
#endif
@@ -182,7 +184,7 @@ flext::buffer::lock_t flext::buffer::Lock()
FLEXT_ASSERT(sym);
#if FLEXT_SYS == FLEXT_SYS_PD
FLEXT_ASSERT(arr);
-#if PD_MINOR_VERSION >= 38 && defined(PD_DEVEL_VERSION)
+#ifdef FLEXT_HAVE_GARRAYLOCKS
garray_lock(arr);
#endif
return false;
@@ -207,7 +209,7 @@ void flext::buffer::Unlock(flext::buffer::lock_t prv)
FLEXT_ASSERT(sym);
#if FLEXT_SYS == FLEXT_SYS_PD
FLEXT_ASSERT(arr);
-#if PD_MINOR_VERSION >= 38 && defined(PD_DEVEL_VERSION)
+#ifdef FLEXT_HAVE_GARRAYLOCKS
garray_unlock(arr);
#endif
#elif FLEXT_SYS == FLEXT_SYS_MAX
@@ -337,7 +339,7 @@ bool flext::buffer::IsDirty() const
FLEXT_ASSERT(sym);
#if FLEXT_SYS == FLEXT_SYS_PD
FLEXT_ASSERT(arr);
- #ifdef FLEXT_PDBUFDIRTYTIME
+ #ifdef FLEXT_HAVE_GARRAYUPDATETIME
return isdirty || garray_updatetime(arr) > cleantime;
#else
// Don't know.... (no method in PD judging whether buffer has been changed from outside flext...)