Browse files

Manually integrated @gtbass OSX changes.

  • Loading branch information...
1 parent f85b001 commit 70fd65501e5ddc0dab49f732866483c826d6d8e7 @bkaradzic committed Dec 9, 2012
Showing with 19 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +17 −0 examples/common/entry_osx.cpp
  3. +1 −0 makefile
View
1 .gitignore
@@ -2,3 +2,4 @@
.debug/
.svn/
tags
+.DS_Store
View
17 examples/common/entry_osx.cpp
@@ -0,0 +1,17 @@
+/*
+ * Copyright 2011-2012 Branimir Karadzic. All rights reserved.
+ * License: http://www.opensource.org/licenses/BSD-2-Clause
+ */
+
+#include <bx/bx.h>
+
+#if BX_PLATFORM_OSX
+
+extern int _main_(int _argc, char** _argv);
+
+int main(int _argc, char** _argv)
+{
+ return _main_(_argc, _argv);
+}
+
+#endif // BX_PLATFORM_OSX
View
1 makefile
@@ -11,6 +11,7 @@ all:
premake --file=premake/premake4.lua --gcc=mingw gmake
premake --file=premake/premake4.lua --gcc=linux gmake
premake --file=premake/premake4.lua --gcc=emscripten gmake
+ premake --file=premake/premake4.lua xcode4
make -s --no-print-directory -C src
linux-debug32:

0 comments on commit 70fd655

Please sign in to comment.