zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit c6c19055d5ba3cb1713c1c762a19b70d653c9cd0
parent 4e1ac7aff9cddff829afc275e51caa39ef9d5eb0
Author: Carlo Bramini <30959007+carlo-bramini@users.noreply.github.com>
Date:   Thu,  9 Jul 2020 19:59:48 +0200

[CYGWIN] Add support for this platform.

When building under CYGWIN, I got few errors because some stuff, like usleep(), was not declared.
Actually, everything already exists in CYGWIN, but when compiling under C++11, some prototypes and symbols are intentionally deactivated and they need to be activated manually with some macros like _GNU_SOURCE, _BSD_SOURCE or others.
The addition of the required macros in this commit allows to activate the required symbols and compile the sources successfully.
Diffstat:
Msrc/CMakeLists.txt | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt @@ -338,6 +338,10 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") add_definitions(-DWIN32) endif() +if(${CMAKE_SYSTEM_NAME} STREQUAL "CYGWIN") + add_definitions(-D_GNU_SOURCE=1 -D_POSIX_THREAD_PRIO_INHERIT=1) +endif() + add_definitions( -Wall -Wextra