summaryrefslogtreecommitdiff
path: root/libs/pbd/test
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2019-12-30 09:49:23 -0700
committerPaul Davis <paul@linuxaudiosystems.com>2019-12-30 09:49:23 -0700
commit60ccbcf9cca65edac59bf374cc4af13eda91c791 (patch)
tree5c51d07656d0120d08d0effcc310bb58ed4c6997 /libs/pbd/test
parent2f167e6163bdf599fd66fd642ab7159405ef8f81 (diff)
use a local version (copy) of the G_SOURCE_FUNC macro, since it is not available in the GTK+ version we use for the official build stack
Diffstat (limited to 'libs/pbd/test')
-rw-r--r--libs/pbd/test/timer_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/pbd/test/timer_test.cc b/libs/pbd/test/timer_test.cc
index 7c78b9c3c0..43001d824e 100644
--- a/libs/pbd/test/timer_test.cc
+++ b/libs/pbd/test/timer_test.cc
@@ -10,6 +10,10 @@
#include <windows.h>
#endif
+#ifndef G_SOURCE_FUNC
+#define G_SOURCE_FUNC(f) ((GSourceFunc) (void (*)(void)) (f))
+#endif
+
CPPUNIT_TEST_SUITE_REGISTRATION (TimerTest);
using namespace std;