aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/source')
-rw-r--r--externals/grill/flext/source/flattr_ed.cpp10
-rwxr-xr-xexternals/grill/flext/source/flprefix.h15
-rw-r--r--externals/grill/flext/source/flstdc.h22
-rw-r--r--externals/grill/flext/source/flsupport.h2
4 files changed, 31 insertions, 18 deletions
diff --git a/externals/grill/flext/source/flattr_ed.cpp b/externals/grill/flext/source/flattr_ed.cpp
index a75e3715..c147fbe4 100644
--- a/externals/grill/flext/source/flattr_ed.cpp
+++ b/externals/grill/flext/source/flattr_ed.cpp
@@ -61,11 +61,17 @@ void flext_base::SetAttrEditor(t_classid c)
widgetbehavior.w_deletefn = text_widgetbehavior.w_deletefn;
widgetbehavior.w_clickfn = text_widgetbehavior.w_clickfn;
#endif
- widgetbehavior.w_propertiesfn = cb_GfxProperties;
- widgetbehavior.w_savefn = cb_GfxSave;
+
widgetbehavior.w_visfn = cb_GfxVis;
class_setwidget(c, &widgetbehavior);
+#if PD_MINOR_VERSION >= 37
+ class_setpropertiesfn(c,cb_GfxProperties);
+ class_setsavefn(c,cb_GfxSave);
+#else
+ widgetbehavior.w_propertiesfn = cb_GfxProperties;
+ widgetbehavior.w_savefn = cb_GfxSave;
+#endif
// generate the script for the property dialog
diff --git a/externals/grill/flext/source/flprefix.h b/externals/grill/flext/source/flprefix.h
index e9e43e50..93bfbe4d 100755
--- a/externals/grill/flext/source/flprefix.h
+++ b/externals/grill/flext/source/flprefix.h
@@ -342,21 +342,6 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#endif
#endif
-// ----- set message queue mode -----
-#undef FLEXT_QTHR
-
-#ifdef FLEXT_PDLOCK
- // new PD thread locking functionality shall be used
- #if FLEXT_SYS == FLEXT_SYS_PD
- #ifdef FLEXT_THREADS
- // can only be used with PD and threaded build
- #define FLEXT_QTHR
- #endif
- #else
- #error FLEXT_PDLOCK can only be defined with PD
- #endif
-#endif
-
// ----- macros for class names -----
/*
With linux (flat linker namespace) and more than one flext-based external loaded all calls to static
diff --git a/externals/grill/flext/source/flstdc.h b/externals/grill/flext/source/flstdc.h
index 36fe8e15..fc51e890 100644
--- a/externals/grill/flext/source/flstdc.h
+++ b/externals/grill/flext/source/flstdc.h
@@ -236,4 +236,26 @@ typedef t_symbol *t_symptr;
#endif
+// ----- set message queue mode -----
+#undef FLEXT_QTHR
+
+#if FLEXT_SYS == FLEXT_SYS_PD && PD_MINOR_VERSION >= 37
+ // for PD version >= 0.37test10 FLEXT_PDLOCK is standard
+ #undef FLEXT_PDLOCK
+ #define FLEXT_PDLOCK
+#endif
+
+#ifdef FLEXT_PDLOCK
+ // new PD thread locking functionality shall be used
+ #if FLEXT_SYS == FLEXT_SYS_PD
+ #ifdef FLEXT_THREADS
+ // can only be used with PD and threaded build
+ #define FLEXT_QTHR
+ #endif
+ #else
+ #error FLEXT_PDLOCK can only be defined with PD
+ #endif
+#endif
+
+
#endif
diff --git a/externals/grill/flext/source/flsupport.h b/externals/grill/flext/source/flsupport.h
index c2eaa18f..c4331df4 100644
--- a/externals/grill/flext/source/flsupport.h
+++ b/externals/grill/flext/source/flsupport.h
@@ -92,7 +92,7 @@ public:
//! Free an aligned memory block
static void FreeAligned(void *blk);
//! Test for alignment
- static bool IsAligned(void *ptr,int bitalign = 128) { return (reinterpret_cast<unsigned long>(ptr)&(bitalign-1)) == 0; }
+ static bool IsAligned(void *ptr,int bitalign = 128) { return (reinterpret_cast<unsigned long long>(ptr)&(bitalign-1)) == 0; }
//! @} FLEXT_S_MEMORY