From 4fa7580dea6e89361ca6d9ee3d9651783f9fe6ed Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 31 Dec 2013 22:10:58 +0100 Subject: [PATCH] (MSVC) Builds again --- Makefile | 2 +- Makefile.win | 2 +- gfx/glsym/rglgen.c | 1 + gfx/glsym/rglgen.h | 4 + ...hread_wrapper.c => video_thread_wrapper.c} | 0 griffin/griffin.c | 2 +- msvc/msvc-2010/RetroArch-msvc2010.vcxproj | 12 +- .../RetroArch-msvc2010.vcxproj.filters | 177 ++++++++++++++++++ 8 files changed, 195 insertions(+), 5 deletions(-) rename gfx/{thread_wrapper.c => video_thread_wrapper.c} (100%) create mode 100644 msvc/msvc-2010/RetroArch-msvc2010.vcxproj.filters diff --git a/Makefile b/Makefile index 0c18cfa95f..2444159922 100644 --- a/Makefile +++ b/Makefile @@ -96,7 +96,7 @@ ifeq ($(HAVE_RGUI), 1) endif ifeq ($(HAVE_THREADS), 1) - OBJ += autosave.o thread.o gfx/thread_wrapper.o audio/thread_wrapper.o + OBJ += autosave.o thread.o gfx/video_thread_wrapper.o audio/thread_wrapper.o ifeq ($(findstring Haiku,$(OS)),) LIBS += -lpthread endif diff --git a/Makefile.win b/Makefile.win index 5bf111b059..90aab996bf 100644 --- a/Makefile.win +++ b/Makefile.win @@ -116,7 +116,7 @@ ifeq ($(HAVE_SDL), 1) endif ifeq ($(HAVE_THREADS), 1) - OBJ += autosave.o thread.o gfx/thread_wrapper.o audio/thread_wrapper.o + OBJ += autosave.o thread.o gfx/video_thread_wrapper.o audio/thread_wrapper.o DEFINES += -DHAVE_THREADS endif diff --git a/gfx/glsym/rglgen.c b/gfx/glsym/rglgen.c index 06ff488e72..0591fbb268 100644 --- a/gfx/glsym/rglgen.c +++ b/gfx/glsym/rglgen.c @@ -1,3 +1,4 @@ +#include #include "rglgen.h" #include "glsym.h" #include diff --git a/gfx/glsym/rglgen.h b/gfx/glsym/rglgen.h index a3cd5da844..80bd887fad 100644 --- a/gfx/glsym/rglgen.h +++ b/gfx/glsym/rglgen.h @@ -33,6 +33,10 @@ #include #include #else +#if defined(_WIN32) && !defined(_XBOX) +#define WIN32_LEAN_AND_MEAN +#include +#endif #include #include #endif diff --git a/gfx/thread_wrapper.c b/gfx/video_thread_wrapper.c similarity index 100% rename from gfx/thread_wrapper.c rename to gfx/video_thread_wrapper.c diff --git a/griffin/griffin.c b/griffin/griffin.c index f7b1cd5b49..e1e5c98e5b 100644 --- a/griffin/griffin.c +++ b/griffin/griffin.c @@ -535,7 +535,7 @@ THREAD #include "../thread/xenon_sdl_threads.c" #elif defined(HAVE_THREADS) #include "../thread.c" -#include "../gfx/thread_wrapper.c" +#include "../gfx/video_thread_wrapper.c" #include "../audio/thread_wrapper.c" #include "../autosave.c" #endif diff --git a/msvc/msvc-2010/RetroArch-msvc2010.vcxproj b/msvc/msvc-2010/RetroArch-msvc2010.vcxproj index fe8ace2dc8..509d98e337 100644 --- a/msvc/msvc-2010/RetroArch-msvc2010.vcxproj +++ b/msvc/msvc-2010/RetroArch-msvc2010.vcxproj @@ -187,6 +187,7 @@ + @@ -196,6 +197,7 @@ + @@ -211,11 +213,17 @@ + + + CompileAsC + CompileAsC + - + + @@ -305,4 +313,4 @@ - \ No newline at end of file + diff --git a/msvc/msvc-2010/RetroArch-msvc2010.vcxproj.filters b/msvc/msvc-2010/RetroArch-msvc2010.vcxproj.filters new file mode 100644 index 0000000000..4426065d34 --- /dev/null +++ b/msvc/msvc-2010/RetroArch-msvc2010.vcxproj.filters @@ -0,0 +1,177 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gfx + + + gfx + + + gfx + + + gfx + + + gfx + + + frontend\menu + + + frontend\menu + + + frontend\menu + + + frontend\menu\disp + + + gfx\glsym + + + gfx\glsym + + + audio + + + audio + + + audio + + + gfx\d3d9 + + + gfx\math + + + gfx\math + + + gfx + + + gfx + + + gfx + + + gfx + + + gfx\context + + + audio + + + audio + + + audio + + + input + + + input + + + input + + + audio + + + gfx + + + + + + + + + + + {8e47cc2f-ec74-4943-b7b7-156705b5d06e} + + + {70d71fcb-ca47-4008-a027-26ed3eaa1f16} + + + {6a00f197-1398-4044-bbf1-ee767df7a2ee} + + + {45fc4432-da59-4c73-a194-1fd2155489bc} + + + {98e75d1b-5c77-4e09-ba68-248974772850} + + + {a4e2c91e-3109-4ef9-a5ae-a42dc713c499} + + + {f2f1e12e-ac10-4b0e-aa95-7a4b6a555d44} + + + {c5041859-b61d-41bb-8f3a-f596248b1132} + + + {46e89489-2413-4645-aef3-66c7d9dd9dca} + + + {c7cbb180-c629-4897-89f0-a4298eaf5f27} + + +