Browse Source

Fix macOS build

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.5.0
falkTX 2 years ago
parent
commit
17b34c5653
2 changed files with 14 additions and 13 deletions
  1. +1
    -12
      source/utils/CarlaMacUtils.cpp
  2. +13
    -1
      source/utils/CarlaMacUtils.hpp

+ 1
- 12
source/utils/CarlaMacUtils.cpp View File

@@ -1,6 +1,6 @@
/*
* 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
* modify it under the terms of the GNU General Public License as
@@ -22,18 +22,7 @@

#include <sys/xattr.h>

#ifdef __MAC_10_12
# define Component CocoaComponent
# define MemoryBlock CocoaMemoryBlock
# define Point CocoaPoint
#endif

#import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>

#undef Component
#undef MemoryBlock
#undef Point

CARLA_BACKEND_START_NAMESPACE



+ 13
- 1
source/utils/CarlaMacUtils.hpp View File

@@ -1,6 +1,6 @@
/*
* 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
* 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 <Foundation/Foundation.h>

#undef Component
#undef MemoryBlock
#undef Point

#include "CarlaBackend.h"
CARLA_BACKEND_START_NAMESPACE


Loading…
Cancel
Save