Cocoa port start:
[blender.git] / intern / ghost / intern / GHOST_ISystem.cpp
index 9329e68132b136e4797886913e0d46c1334e6972..fc338c182a92a03bb0df3444101a8ae208b05a46 100644 (file)
 #      include "GHOST_SystemWin32.h"
 #else
 #      ifdef __APPLE__
-#              include "GHOST_SystemCarbon.h"
+#              ifdef GHOST_COCOA
+#                      include "GHOST_SystemCocoa.h"
+#              else
+#                      include "GHOST_SystemCarbon.h"
+#              endif
 #      else
 #              include "GHOST_SystemX11.h"
 #      endif
@@ -62,7 +66,11 @@ GHOST_TSuccess GHOST_ISystem::createSystem()
                m_system = new GHOST_SystemWin32 ();
 #else
 #      ifdef __APPLE__
-        m_system = new GHOST_SystemCarbon ();
+#              ifdef GHOST_COCOA
+                       m_system = new GHOST_SystemCocoa ();
+#              else
+                       m_system = new GHOST_SystemCarbon ();
+#              endif
 #      else 
                m_system = new GHOST_SystemX11 ();
 #      endif