From 6c4627b1b71efa9f8a04fdb1634f996865ffc640 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 28 Sep 2016 10:51:01 -0500 Subject: [PATCH] fix for push2 code on Windows (no random()) --- libs/surfaces/push2/push2.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/surfaces/push2/push2.cc b/libs/surfaces/push2/push2.cc index 73c871548b..57160abee3 100644 --- a/libs/surfaces/push2/push2.cc +++ b/libs/surfaces/push2/push2.cc @@ -57,6 +57,10 @@ #include "pbd/i18n.h" +#ifdef PLATFORM_WINDOWS +#define random() rand() +#endif + using namespace ARDOUR; using namespace std; using namespace PBD; -- 2.30.2