Merge pull request #1008 from heuripedes/master

Windows builds fixes
This commit is contained in:
Twinaphex 2014-09-14 04:36:01 +02:00
commit edea06292e
3 changed files with 5 additions and 4 deletions

View File

@ -281,7 +281,8 @@ endif
ifeq ($(HAVE_WINXINPUT), 1)
DEFINES += -DHAVE_WINXINPUT
OBJ += input/winxinput_joypad.o
OBJ += input/winxinput_joypad.o \
input/autoconf/builtin_win.o
JOYCONFIG_OBJ += input/winxinput_joypad.o
endif
@ -374,8 +375,7 @@ ifeq ($(HAVE_OPENGL), 1)
LIBS += -framework OpenGL
else ifneq ($(findstring Win32,$(OS)),)
LIBS += -lopengl32 -lgdi32 -lcomdlg32
OBJ += gfx/context/wgl_ctx.o \
gfx/context/win32_common.o
OBJ += gfx/context/wgl_ctx.o
else
LIBS += -lGL
endif

View File

@ -52,6 +52,7 @@ PYTHON_CFLAGS := -DHAVE_PYTHON -Ipython
OBJDIR := obj-w32
OS := Win32
OBJ :=
JOYCONFIG_OBJ :=
LIBS := -lm

View File

@ -1450,7 +1450,7 @@ void input_config_autoconfigure_joypad(unsigned index,
/* false = load from both cfg files and internal */
bool internal_only = !*g_settings.input.autoconfig_dir;
#ifdef HAVE_BUILTIN_AUTOCONFIG
#if defined(HAVE_BUILTIN_AUTOCONFIG) && (!defined(_WIN32) || defined(HAVE_WINXINPUT))
/* First internal */
for (i = 0; input_builtin_autoconfs[i]; i++)
{