From fd8928a4bb01533c6cd36f3ee26447f252e912fb Mon Sep 17 00:00:00 2001 From: Carlo Bramini Date: Thu, 24 Apr 2025 13:05:59 +0200 Subject: [PATCH] Fix support for CYGWIN Carla doesn't work on CYGWIN and the message: Unsupported platform! is printed on the console when building. The macro CARLA_OS_UNIX is needed to make a working executable for CYGWIN, so I added CARLA_OS_CYGWIN, to be added together with existing macros. Hopefully, it is an easy fix and it has solved all the problems here. Tested with latest development version of Lmms at the time of writing. --- source/includes/CarlaDefines.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/includes/CarlaDefines.h b/source/includes/CarlaDefines.h index ecb053dd8..7e2808f48 100644 --- a/source/includes/CarlaDefines.h +++ b/source/includes/CarlaDefines.h @@ -38,6 +38,8 @@ # define CARLA_OS_WIN32 #elif defined(__APPLE__) # define CARLA_OS_MAC +#elif defined(__CYGWIN__) +# define CARLA_OS_CYGWIN #elif defined(__HAIKU__) # define CARLA_OS_HAIKU #elif defined(__linux__) || defined(__linux) @@ -54,7 +56,7 @@ #if defined(CARLA_OS_WIN32) || defined(CARLA_OS_WIN64) # define CARLA_OS_WIN -#elif defined(CARLA_OS_BSD) || defined(CARLA_OS_GNU_HURD) || defined(CARLA_OS_LINUX) || defined(CARLA_OS_MAC) +#elif defined(CARLA_OS_BSD) || defined(CARLA_OS_GNU_HURD) || defined(CARLA_OS_LINUX) || defined(CARLA_OS_MAC) || defined(CARLA_OS_CYGWIN) # define CARLA_OS_UNIX #endif