@@ -1,6 +1,6 @@ | |||||
/* | /* | ||||
* Carla macOS utils | * Carla macOS utils | ||||
* Copyright (C) 2018-2021 Filipe Coelho <falktx@falktx.com> | |||||
* Copyright (C) 2018-2022 Filipe Coelho <falktx@falktx.com> | |||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or | ||||
* modify it under the terms of the GNU General Public License as | * modify it under the terms of the GNU General Public License as | ||||
@@ -22,18 +22,7 @@ | |||||
#include <sys/xattr.h> | #include <sys/xattr.h> | ||||
#ifdef __MAC_10_12 | |||||
# define Component CocoaComponent | |||||
# define MemoryBlock CocoaMemoryBlock | |||||
# define Point CocoaPoint | |||||
#endif | |||||
#import <Cocoa/Cocoa.h> | #import <Cocoa/Cocoa.h> | ||||
#import <Foundation/Foundation.h> | |||||
#undef Component | |||||
#undef MemoryBlock | |||||
#undef Point | |||||
CARLA_BACKEND_START_NAMESPACE | CARLA_BACKEND_START_NAMESPACE | ||||
@@ -1,6 +1,6 @@ | |||||
/* | /* | ||||
* Carla macOS utils | * Carla macOS utils | ||||
* Copyright (C) 2018-2021 Filipe Coelho <falktx@falktx.com> | |||||
* Copyright (C) 2018-2022 Filipe Coelho <falktx@falktx.com> | |||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or | ||||
* modify it under the terms of the GNU General Public License as | * modify it under the terms of the GNU General Public License as | ||||
@@ -22,6 +22,18 @@ | |||||
# error wrong include | # error wrong include | ||||
#endif | #endif | ||||
#ifdef __MAC_10_12 | |||||
# define Component CocoaComponent | |||||
# define MemoryBlock CocoaMemoryBlock | |||||
# define Point CocoaPoint | |||||
#endif | |||||
#import <Foundation/Foundation.h> | |||||
#undef Component | |||||
#undef MemoryBlock | |||||
#undef Point | |||||
#include "CarlaBackend.h" | #include "CarlaBackend.h" | ||||
CARLA_BACKEND_START_NAMESPACE | CARLA_BACKEND_START_NAMESPACE | ||||