Build break

This commit is contained in:
Lior Halphon 2022-07-31 01:16:03 +03:00
parent d6adbe0c7f
commit 7b5846fbaf
3 changed files with 10 additions and 3 deletions

View File

@ -14,6 +14,9 @@
#import "GBObjectView.h"
#import "GBPaletteView.h"
#define likely(x) GB_likely(x)
#define unlikely(x) GB_unlikely(x)
@implementation NSString (relativePath)
- (NSString *)pathRelativeToDirectory:(NSString *)directory

View File

@ -1,11 +1,14 @@
#ifndef defs_h
#define defs_h
#define GB_likely(x) __builtin_expect((bool)(x), 1)
#define GB_unlikely(x) __builtin_expect((bool)(x), 0)
#ifdef GB_INTERNAL
// "Keyword" definitions
#define likely(x) __builtin_expect((bool)(x), 1)
#define unlikely(x) __builtin_expect((bool)(x), 0)
#define likely(x) GB_likely(x)
#define unlikely(x) GB_unlikely(x)
#define internal __attribute__((visibility("internal")))

View File

@ -5,7 +5,8 @@
#include "audio/audio.h"
#include "configuration.h"
#define unlikely(x) __builtin_expect((bool)(x), 0)
#define likely(x) GB_likely(x)
#define unlikely(x) GB_unlikely(x)
static const GB_audio_driver_t *driver = NULL;