* ifdef most of VideoUpdate away to make it compile.
authorMatthijs Kooijman <m.kooijman@student.utwente.nl>
Sun, 10 Jun 2007 19:54:35 +0000 (21:54 +0200)
committerMatthijs Kooijman <m.kooijman@student.utwente.nl>
Sun, 10 Jun 2007 19:54:35 +0000 (21:54 +0200)
ABM2/Engine/VideoUpdate.cpp
ABM2/Makefile
ABM2/main.h

index 9ff6db9219e0c8ae4f0ef2a9db14ec5c9161ad1c..14f60440f6f99518e7efe50a83a3c6da6e5e854f 100755 (executable)
@@ -15,7 +15,7 @@
 // Construction/Destruction\r
 //////////////////////////////////////////////////////////////////////\r
 LPDIRECT3DDEVICE9 d3ddev;    // the pointer to the device class\r
-\r
+#endif //WIN32\r
 CMMPointer<Dator<int> > CVideoUpdate::screenWidth=0;\r
 CMMPointer<Dator<int> > CVideoUpdate::screenHeight=0;\r
 CMMPointer<Dator<int> > CVideoUpdate::screenBPP=0;\r
@@ -23,6 +23,7 @@ int CVideoUpdate::scrWidth=640;
 int CVideoUpdate::scrHeight=480;\r
 int CVideoUpdate::scrBPP=16;\r
 \r
+#ifdef WIN32\r
 CVideoUpdate::CVideoUpdate()\r
 {\r
        d3d = Direct3DCreate9(D3D_SDK_VERSION);\r
index 216421b4f3fced1b9203e6d421e870d5ff29a2d7..b3857a69551bde1238367bf09700643c308d7d0e 100644 (file)
@@ -1,5 +1,5 @@
 CFLAGS:=-I.
-OBJS:=main.o Engine/Log.o SchemeReader.o Engine/Settings.o Engine/mmanager.o Engine/Kernel.o Engine/ProfileLogHandler.o
+OBJS:=main.o Engine/Log.o SchemeReader.o Engine/Settings.o Engine/mmanager.o Engine/Kernel.o Engine/ProfileLogHandler.o Engine/VideoUpdate.o
 
 all: $(OBJS)
 
index 6ca3351d653182d032e61d1f94bcb224ec691096..f027fb82190e8f25a7dcc98a805eb5427ca213c9 100755 (executable)
@@ -1,4 +1,6 @@
 #pragma once\r
 \r
+#ifdef WIN32\r
 extern HINSTANCE hInstance;\r
 extern HWND hWnd;\r
+#endif //WIN32\r