move util out of include
This commit is contained in:
parent
3fde4138de
commit
d23c3d3ec1
10 changed files with 14 additions and 18 deletions
|
@ -1,20 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
#ifdef __APPLE__
|
||||
|
||||
#include "../../util/macros.h"
|
||||
|
||||
#ifdef __OBJC__
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface Bridge : NSObject
|
||||
+ (NSDictionary*)currentPlayingMetadata;
|
||||
+ (NSString*)macOSVersion;
|
||||
@end
|
||||
|
||||
#else
|
||||
#include "util/macros.h"
|
||||
|
||||
extern "C" {
|
||||
fn GetCurrentPlayingTitle() -> const char*;
|
||||
fn GetCurrentPlayingArtist() -> const char*;
|
||||
fn GetMacOSVersion() -> const char*;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -90,8 +90,6 @@ using MRMediaRemoteGetNowPlayingInfoFunction =
|
|||
}
|
||||
@end
|
||||
|
||||
#include "util/macros.h"
|
||||
|
||||
extern "C" {
|
||||
fn GetCurrentPlayingTitle() -> const char* {
|
||||
NSDictionary* metadata = [Bridge currentPlayingMetadata];
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
#include "util/macros.h"
|
||||
#include "util/numtypes.h"
|
||||
#include "../util/macros.h"
|
||||
#include "../util/numtypes.h"
|
||||
|
||||
/**
|
||||
* @brief Get the amount of installed RAM in bytes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue