mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
win32 compile fixes
This commit is contained in:
parent
77d244220b
commit
0f9adc182d
4 changed files with 13 additions and 10 deletions
12
configure.ac
12
configure.ac
|
@ -686,17 +686,21 @@ case "${host}" in
|
|||
i?86-*-mingw32*)
|
||||
SYSTYPE=WIN32
|
||||
AC_MSG_RESULT([Win32 driver])
|
||||
WIN32_LIBS=' $(NET_LIBS)'
|
||||
;;
|
||||
i?86-*-cygwin*)
|
||||
SYSTYPE=WIN32
|
||||
AC_MSG_RESULT([Win32 driver])
|
||||
WIN32_LIBS=' $(NET_LIBS)'
|
||||
;;
|
||||
*)
|
||||
SYSTYPE=POSIX
|
||||
AC_MSG_RESULT([default POSIX driver])
|
||||
WIN32_LIBS=''
|
||||
;;
|
||||
esac
|
||||
AM_CONDITIONAL(SYSTYPE_WIN32, test "$SYSTYPE" = "WIN32")
|
||||
AC_SUBST(WIN32_LIBS)
|
||||
|
||||
dnl Check for ia32
|
||||
AC_MSG_CHECKING(for an ia32 machine)
|
||||
|
@ -1859,28 +1863,28 @@ AC_SUBST(plugin_ldflags)
|
|||
AC_SUBST(plugin_libadd)
|
||||
|
||||
QFCC_DEPS='$(top_builddir)/libs/gamecode/engine/libQFgamecode.la $(top_builddir)/libs/util/libQFutil.la'
|
||||
QFCC_LIBS="${QFCC_DEPS} ${WINMM}"
|
||||
QFCC_LIBS="${QFCC_DEPS} "'$(WIN32_LIBS)'
|
||||
QFCC_INCS='-I$(top_srcdir)/tools/qfcc/include'
|
||||
AC_SUBST(QFCC_LIBS)
|
||||
AC_SUBST(QFCC_DEPS)
|
||||
AC_SUBST(QFCC_INCS)
|
||||
|
||||
QFPROGS_DEPS='$(top_builddir)/libs/gamecode/engine/libQFgamecode.la $(top_builddir)/libs/util/libQFutil.la'
|
||||
QFPROGS_LIBS="${QFPROGS_DEPS} ${WINMM}"
|
||||
QFPROGS_LIBS="${QFPROGS_DEPS} "'$(WIN32_LIBS)'
|
||||
QFPROGS_INCS='-I$(top_srcdir)/tools/qfprogs/include'
|
||||
AC_SUBST(QFPROGS_LIBS)
|
||||
AC_SUBST(QFPROGS_DEPS)
|
||||
AC_SUBST(QFPROGS_INCS)
|
||||
|
||||
QWAQ_DEPS='$(top_builddir)/libs/gamecode/engine/libQFgamecode.la $(top_builddir)/libs/util/libQFutil.la'
|
||||
QWAQ_LIBS="${QWAQ_DEPS} ${WINMM}"
|
||||
QWAQ_LIBS="${QWAQ_DEPS} "'$(WIN32_LIBS)'
|
||||
QWAQ_INCS=''
|
||||
AC_SUBST(QWAQ_LIBS)
|
||||
AC_SUBST(QWAQ_DEPS)
|
||||
AC_SUBST(QWAQ_INCS)
|
||||
|
||||
PAK_DEPS='$(top_builddir)/libs/util/libQFutil.la'
|
||||
PAK_LIBS="${PAK_DEPS} ${WINMM}"
|
||||
PAK_LIBS="${PAK_DEPS} "'$(WIN32_LIBS)'
|
||||
PAK_INCS=""
|
||||
AC_SUBST(PAK_LIBS)
|
||||
AC_SUBST(PAK_DEPS)
|
||||
|
|
|
@ -41,6 +41,9 @@ static const char rcsid[] =
|
|||
#ifdef HAVE_LIMITS_H
|
||||
# include <limits.h>
|
||||
#endif
|
||||
#ifdef HAVE_CONIO_H
|
||||
# include <conio.h>
|
||||
#endif
|
||||
#ifdef HAVE_IO_H
|
||||
# include <io.h>
|
||||
#endif
|
||||
|
@ -471,6 +474,7 @@ Sys_CheckInput (int idle, int net_socket)
|
|||
struct timeval *timeout = 0;
|
||||
|
||||
#ifdef _WIN32
|
||||
int sleep_msec;
|
||||
// Now we want to give some processing time to other applications,
|
||||
// such as qw_client, running on this machine.
|
||||
sleep_msec = sys_sleep->int_val;
|
||||
|
@ -515,7 +519,7 @@ const char *
|
|||
Sys_ConsoleInput (void)
|
||||
{
|
||||
static char text[256];
|
||||
int len;
|
||||
int len = 0;
|
||||
|
||||
#ifdef _WIN32
|
||||
int c;
|
||||
|
|
|
@ -63,7 +63,6 @@ qboolean WinNT;
|
|||
static double pfreq;
|
||||
static int lowshift;
|
||||
qboolean isDedicated;
|
||||
static qboolean sc_return_on_enter = false;
|
||||
HANDLE hinput, houtput;
|
||||
|
||||
static const char tracking_tag[] = "Clams & Mooses";
|
||||
|
|
|
@ -31,9 +31,6 @@ static const char rcsid[] =
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <conio.h>
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <winsock.h>
|
||||
|
||||
#include "QF/cvar.h"
|
||||
|
@ -83,7 +80,6 @@ int
|
|||
main (int argc, const char **argv)
|
||||
{
|
||||
double newtime, time, oldtime;
|
||||
int sleep_msec;
|
||||
|
||||
COM_InitArgv (argc, argv);
|
||||
|
||||
|
|
Loading…
Reference in a new issue