mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-22 12:11:34 +00:00
server builds (and works, thanks for the test, Dabb) and an sdl client attempts
to link.
This commit is contained in:
parent
f1a5a25b69
commit
21654b12e5
8 changed files with 32 additions and 29 deletions
|
@ -106,5 +106,8 @@
|
||||||
/* Define this if you want to have packet logging */
|
/* Define this if you want to have packet logging */
|
||||||
#undef PACKET_LOGGING
|
#undef PACKET_LOGGING
|
||||||
|
|
||||||
|
/* Define this if you have fnmatch.h */
|
||||||
|
#undef HAVE_FNMATCH_H
|
||||||
|
|
||||||
@BOTTOM@
|
@BOTTOM@
|
||||||
#endif // __config_h_
|
#endif // __config_h_
|
||||||
|
|
13
configure.in
13
configure.in
|
@ -35,10 +35,13 @@ AC_LANG_C
|
||||||
endian=""
|
endian=""
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
mingw32*)
|
mingw32*)
|
||||||
|
mingw=yes
|
||||||
CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/include/win32"
|
CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/include/win32"
|
||||||
CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/include/win32/resources"
|
CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/include/win32/resources"
|
||||||
CC=i386-mingw32msvc-gcc
|
if test $host != $build; then
|
||||||
|
CC=$host_cpu-$host_os-gcc
|
||||||
endian="little"
|
endian="little"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -98,7 +101,13 @@ AC_CHECK_HEADERS(
|
||||||
sys/time.h sys/types.h sys/wait.h time.h unistd.h vga.h \
|
sys/time.h sys/types.h sys/wait.h time.h unistd.h vga.h \
|
||||||
vgakeyboard.h vgamouse.h windows.h winsock.h zlib.h
|
vgakeyboard.h vgamouse.h windows.h winsock.h zlib.h
|
||||||
)
|
)
|
||||||
|
if test "x$mingw" = xyes; then
|
||||||
|
AC_MSG_CHECKING(for fnmatch.h)
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
AC_DEFINE(HAVE_FNMATCH_H)
|
||||||
|
else
|
||||||
|
AC_CHECK_HEADERS(fnmatch.h)
|
||||||
|
fi
|
||||||
|
|
||||||
dnl ==================================================================
|
dnl ==================================================================
|
||||||
dnl Checks for typedefs, structures, and compiler characteristics
|
dnl Checks for typedefs, structures, and compiler characteristics
|
||||||
|
|
|
@ -97,6 +97,8 @@ void VID_UnlockBuffer (void);
|
||||||
|
|
||||||
qboolean VID_Is8bit (void);
|
qboolean VID_Is8bit (void);
|
||||||
|
|
||||||
|
void VID_RaiseWindow (void);
|
||||||
|
void VID_MinimiseWindow (void);
|
||||||
void VID_SetCaption (char *text);
|
void VID_SetCaption (char *text);
|
||||||
// used to set window caption
|
// used to set window caption
|
||||||
|
|
||||||
|
|
|
@ -67,9 +67,6 @@
|
||||||
#include "cvar.h"
|
#include "cvar.h"
|
||||||
#include "draw.h"
|
#include "draw.h"
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
#ifdef _WIN32
|
|
||||||
# include "in_win.h"
|
|
||||||
#endif
|
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "keys.h"
|
#include "keys.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
|
@ -89,7 +86,6 @@
|
||||||
#include "vid.h"
|
#include "vid.h"
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "va.h"
|
#include "va.h"
|
||||||
#include "winquake.h"
|
|
||||||
|
|
||||||
#ifdef __sun
|
#ifdef __sun
|
||||||
/* Sun's model_t in sys/model.h conflicts w/ Quake's model_t */
|
/* Sun's model_t in sys/model.h conflicts w/ Quake's model_t */
|
||||||
|
@ -927,8 +923,7 @@ CL_ConnectionlessPacket (void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
ShowWindow (mainwindow, SW_RESTORE);
|
VID_RaiseWindow ();
|
||||||
SetForegroundWindow (mainwindow);
|
|
||||||
#endif
|
#endif
|
||||||
s = MSG_ReadString ();
|
s = MSG_ReadString ();
|
||||||
|
|
||||||
|
@ -1160,10 +1155,7 @@ CL_Minimize_f
|
||||||
void
|
void
|
||||||
CL_Windows_f (void)
|
CL_Windows_f (void)
|
||||||
{
|
{
|
||||||
// if (modestate == MS_WINDOWED)
|
VID_MinimiseWindow ();
|
||||||
// ShowWindow(mainwindow, SW_MINIMIZE);
|
|
||||||
// else
|
|
||||||
SendMessage (mainwindow, WM_SYSKEYUP, VK_TAB, 1 | (0x0F << 16) | (1 << 29));
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,8 @@
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "bothdefs.h"
|
#include "bothdefs.h"
|
||||||
#include "cl_ents.h"
|
#include "cl_ents.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
|
@ -38,12 +40,6 @@
|
||||||
#include "cvar.h"
|
#include "cvar.h"
|
||||||
#include "pmove.h"
|
#include "pmove.h"
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
#include "winquake.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
cvar_t *cl_nopred;
|
cvar_t *cl_nopred;
|
||||||
cvar_t *cl_pushlatency;
|
cvar_t *cl_pushlatency;
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,9 @@
|
||||||
#ifdef HAVE_STRINGS_H
|
#ifdef HAVE_STRINGS_H
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_WINDOWS_H
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "cl_input.h"
|
#include "cl_input.h"
|
||||||
#include "cl_main.h"
|
#include "cl_main.h"
|
||||||
|
@ -66,7 +69,6 @@
|
||||||
#include "va.h"
|
#include "va.h"
|
||||||
#include "vid.h"
|
#include "vid.h"
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "winquake.h"
|
|
||||||
|
|
||||||
void (*vid_menudrawfn) (void);
|
void (*vid_menudrawfn) (void);
|
||||||
void (*vid_menukeyfn) (int key);
|
void (*vid_menukeyfn) (int key);
|
||||||
|
@ -589,14 +591,14 @@ M_Options_Draw (void)
|
||||||
M_Print (16, 152, " Video Options");
|
M_Print (16, 152, " Video Options");
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
if (modestate == MS_WINDOWED) {
|
//FIXMEif (modestate == MS_WINDOWED) {
|
||||||
#endif
|
#endif
|
||||||
if (_windowed_mouse) {
|
if (_windowed_mouse) {
|
||||||
M_Print (16, 160, " Use Mouse");
|
M_Print (16, 160, " Use Mouse");
|
||||||
M_DrawCheckbox (220, 160, _windowed_mouse->int_val);
|
M_DrawCheckbox (220, 160, _windowed_mouse->int_val);
|
||||||
}
|
}
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
}
|
//FIXME}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// cursor
|
// cursor
|
||||||
|
@ -642,9 +644,9 @@ M_Options_Key (int k)
|
||||||
if (options_cursor < 0)
|
if (options_cursor < 0)
|
||||||
options_cursor = OPTIONS_ITEMS - 1;
|
options_cursor = OPTIONS_ITEMS - 1;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
if (options_cursor == 16
|
//FIXMEif (options_cursor == 16
|
||||||
&& (!(_windowed_mouse)
|
//FIXME&& (!(_windowed_mouse)
|
||||||
|| (modestate != MS_WINDOWED))) options_cursor--;
|
//FIXME|| (modestate != MS_WINDOWED))) options_cursor--;
|
||||||
#endif
|
#endif
|
||||||
if (options_cursor == 15 && !(vid_menudrawfn))
|
if (options_cursor == 15 && !(vid_menudrawfn))
|
||||||
options_cursor--;
|
options_cursor--;
|
||||||
|
@ -656,8 +658,8 @@ M_Options_Key (int k)
|
||||||
if (options_cursor == 15 && !(vid_menudrawfn))
|
if (options_cursor == 15 && !(vid_menudrawfn))
|
||||||
options_cursor++;
|
options_cursor++;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
if (options_cursor == 16 && (!(_windowed_mouse) || (modestate != MS_WINDOWED))) // ARGH!!!!!
|
//FIXMEif (options_cursor == 16 && (!(_windowed_mouse) || (modestate != MS_WINDOWED))) // ARGH!!!!!
|
||||||
options_cursor++;
|
//FIXMEoptions_cursor++;
|
||||||
#endif
|
#endif
|
||||||
if (options_cursor >= OPTIONS_ITEMS)
|
if (options_cursor >= OPTIONS_ITEMS)
|
||||||
options_cursor = 0;
|
options_cursor = 0;
|
||||||
|
|
|
@ -75,7 +75,6 @@
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
//# include "winquake.h"
|
|
||||||
# undef EWOULDBLOCK
|
# undef EWOULDBLOCK
|
||||||
# define EWOULDBLOCK WSAEWOULDBLOCK
|
# define EWOULDBLOCK WSAEWOULDBLOCK
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
#define model_t quakeforgemodel_t
|
#define model_t quakeforgemodel_t
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# include <winquake.h>
|
# include <windows.h>
|
||||||
# undef EWOULDBLOCK
|
# undef EWOULDBLOCK
|
||||||
# define EWOULDBLOCK WSAEWOULDBLOCK
|
# define EWOULDBLOCK WSAEWOULDBLOCK
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue