fixed/improved objective-c++ includepath (mac osx only)

This commit is contained in:
H-M-H 2015-11-07 19:29:48 +01:00
parent d99660f20e
commit a496bee27c
2 changed files with 11 additions and 12 deletions

View file

@ -367,7 +367,6 @@ function build(settings)
if platform == "macosx" then if platform == "macosx" then
notification_settings = client_settings:Copy() notification_settings = client_settings:Copy()
notification_settings.cc.flags:Add("-x objective-c++") notification_settings.cc.flags:Add("-x objective-c++")
notification_settings.cc.flags:Add("-I/System/Library/Frameworks/Foundation.framework/Versions/C/Headers")
client_notification = Compile(notification_settings, "src/osx/notification.m") client_notification = Compile(notification_settings, "src/osx/notification.m")
client_osxlaunch = Compile(client_settings, "src/osxlaunch/client.m") client_osxlaunch = Compile(client_settings, "src/osxlaunch/client.m")
server_osxlaunch = Compile(launcher_settings, "src/osxlaunch/server.m") server_osxlaunch = Compile(launcher_settings, "src/osxlaunch/server.m")

View file

@ -1,7 +1,7 @@
#include <NSString.h> #import <Foundation/Foundation.h>
#include <NSUserNotification.h> #import <Foundation/NSUserNotification.h>
#include <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#include "notification.h" #import "notification.h"
void CNotification::notify(const char *pTitle, const char *pMsg) void CNotification::notify(const char *pTitle, const char *pMsg)
{ {