From da44874127b07449e9c53f19179b99d300384a8b Mon Sep 17 00:00:00 2001 From: Socapex Date: Sat, 29 Dec 2012 14:52:48 -0500 Subject: OS X now compiles with process.cpp --- Xcode/ManaPlus.xcodeproj/project.pbxproj | 20 ++++++++++++++++---- src/utils/process.cpp | 21 ++------------------- 2 files changed, 18 insertions(+), 23 deletions(-) diff --git a/Xcode/ManaPlus.xcodeproj/project.pbxproj b/Xcode/ManaPlus.xcodeproj/project.pbxproj index aad4ffcd2..073a9ed40 100644 --- a/Xcode/ManaPlus.xcodeproj/project.pbxproj +++ b/Xcode/ManaPlus.xcodeproj/project.pbxproj @@ -4634,7 +4634,10 @@ "-DUSE_INTERNALGUICHAN", "-DUSE_OPENGL", ); - OTHER_LDFLAGS = "$(SRCROOT)/libs/libintl.a"; + OTHER_LDFLAGS = ( + "$(SRCROOT)/libs/libintl.a", + "-headerpad_max_install_names", + ); PRODUCT_NAME = ManaPlus; SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; USER_HEADER_SEARCH_PATHS = ""; @@ -4682,7 +4685,10 @@ "-DUSE_INTERNALGUICHAN", "-DUSE_OPENGL", ); - OTHER_LDFLAGS = "$(SRCROOT)/libs/libintl.a"; + OTHER_LDFLAGS = ( + "$(SRCROOT)/libs/libintl.a", + "-headerpad_max_install_names", + ); PRODUCT_NAME = ManaPlus; SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; USER_HEADER_SEARCH_PATHS = ""; @@ -4782,7 +4788,10 @@ "-DUSE_OPENGL", "-DENABLE_NLS", ); - OTHER_LDFLAGS = "$(SRCROOT)/libs/libintl.a"; + OTHER_LDFLAGS = ( + "$(SRCROOT)/libs/libintl.a", + "-headerpad_max_install_names", + ); PRODUCT_NAME = "$(TARGET_NAME)"; SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; USER_HEADER_SEARCH_PATHS = ""; @@ -4831,7 +4840,10 @@ "-DUSE_OPENGL", "-DENABLE_NLS", ); - OTHER_LDFLAGS = "$(SRCROOT)/libs/libintl.a"; + OTHER_LDFLAGS = ( + "$(SRCROOT)/libs/libintl.a", + "-headerpad_max_install_names", + ); PRODUCT_NAME = "$(TARGET_NAME)"; SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; USER_HEADER_SEARCH_PATHS = ""; diff --git a/src/utils/process.cpp b/src/utils/process.cpp index 8e238b4cc..f284cc7e1 100644 --- a/src/utils/process.cpp +++ b/src/utils/process.cpp @@ -102,29 +102,12 @@ bool openBrowser(std::string url) nullptr, SW_SHOWNORMAL) > 32; } -#elif defined(__APPLE__) -int execFileWait(std::string pathName, std::string name, - std::string arg1, std::string arg2, int waitTime) -{ - return -1; -} - -bool execFile(std::string pathName, std::string name, - std::string arg1, std::string arg2) -{ - return false; -} - -bool openBrowser(std::string url) -{ - return false; -} - -#elif defined __linux__ || defined __linux +#elif defined __linux__ || defined __linux || defined __APPLE__ #include #include +#include int execFileWait(std::string pathName, std::string name, std::string arg1, std::string arg2, int waitTime) -- cgit v1.2.3-70-g09d2