summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--Slimber/Cocoa/.gitignore1
-rw-r--r--Slimber/Cocoa/main.m6
-rw-r--r--Slimber/Cocoa/main.mm5
4 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 85127f3..fe9602a 100644
--- a/Makefile
+++ b/Makefile
@@ -108,7 +108,7 @@ endif
$(QUIET_CXX)$(CXX) -c $< -o $@ $(CPPFLAGS) $(CXXFLAGS)
%.o: %.mm
- $(QUIET_CC)$(CC) -c $< -o $@ $(CPPFLAGS) $(CXXFLAGS)
+ $(QUIET_CXX)$(CXX) -x objective-c++ -c $< -o $@ $(CPPFLAGS) $(CXXFLAGS)
%.o: %.m
$(QUIET_CC)$(CC) -c $< -o $@ $(CPPFLAGS) $(CFLAGS)
diff --git a/Slimber/Cocoa/.gitignore b/Slimber/Cocoa/.gitignore
index 51d15c3..66f3f9e 100644
--- a/Slimber/Cocoa/.gitignore
+++ b/Slimber/Cocoa/.gitignore
@@ -2,3 +2,4 @@ build
*.mode1v3
*.pbxuser
Slimber
+PkgInfo
diff --git a/Slimber/Cocoa/main.m b/Slimber/Cocoa/main.m
deleted file mode 100644
index 1e887a0..0000000
--- a/Slimber/Cocoa/main.m
+++ /dev/null
@@ -1,6 +0,0 @@
-#import <Cocoa/Cocoa.h>
-
-int main(int argc, char *argv[])
-{
- return NSApplicationMain(argc, (const char **) argv);
-}
diff --git a/Slimber/Cocoa/main.mm b/Slimber/Cocoa/main.mm
new file mode 100644
index 0000000..b7266b5
--- /dev/null
+++ b/Slimber/Cocoa/main.mm
@@ -0,0 +1,5 @@
+#include <Cocoa/Cocoa.h>
+
+int main(int argc, char *argv[]) {
+ return NSApplicationMain(argc, const_cast<const char **>(argv));
+}