diff --git a/source/utils/CarlaMacUtils.cpp b/source/utils/CarlaMacUtils.cpp index c9e3a2a1b..cba93aa1c 100644 --- a/source/utils/CarlaMacUtils.cpp +++ b/source/utils/CarlaMacUtils.cpp @@ -1,6 +1,6 @@ /* * Carla macOS utils - * Copyright (C) 2018-2021 Filipe Coelho + * Copyright (C) 2018-2022 Filipe Coelho * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -22,18 +22,7 @@ #include -#ifdef __MAC_10_12 -# define Component CocoaComponent -# define MemoryBlock CocoaMemoryBlock -# define Point CocoaPoint -#endif - #import -#import - -#undef Component -#undef MemoryBlock -#undef Point CARLA_BACKEND_START_NAMESPACE diff --git a/source/utils/CarlaMacUtils.hpp b/source/utils/CarlaMacUtils.hpp index c9e9d8c1c..af29510ad 100644 --- a/source/utils/CarlaMacUtils.hpp +++ b/source/utils/CarlaMacUtils.hpp @@ -1,6 +1,6 @@ /* * Carla macOS utils - * Copyright (C) 2018-2021 Filipe Coelho + * Copyright (C) 2018-2022 Filipe Coelho * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -22,6 +22,18 @@ # error wrong include #endif +#ifdef __MAC_10_12 +# define Component CocoaComponent +# define MemoryBlock CocoaMemoryBlock +# define Point CocoaPoint +#endif + +#import + +#undef Component +#undef MemoryBlock +#undef Point + #include "CarlaBackend.h" CARLA_BACKEND_START_NAMESPACE