some compile fixes for vc (hopefully)

This commit is contained in:
Bill Currie 2001-01-05 21:10:41 +00:00
parent 451afbd488
commit 8706ada7c6
3 changed files with 10 additions and 7 deletions

View file

@ -227,6 +227,8 @@
/* Define if you have the <sys/timeb.h> header file. */ /* Define if you have the <sys/timeb.h> header file. */
#define HAVE_SYS_TIMEB_H 1 #define HAVE_SYS_TIMEB_H 1
#define HAVE_STRING_H
/* Define if you have the <unistd.h> header file. */ /* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H #undef HAVE_UNISTD_H

View file

@ -671,7 +671,8 @@ DSOUND_LockBuffer(qboolean lockit)
static DWORD *pbuf2; static DWORD *pbuf2;
HRESULT hresult; HRESULT hresult;
if (!pDSBuf) return; if (!pDSBuf)
return NULL;
if (lockit) { if (lockit) {
reps = 0; reps = 0;

View file

@ -301,14 +301,14 @@ Team_ParseSay (char *s)
} }
void void
Team_Dead () Team_Dead (void)
{ {
died = true; died = true;
VectorCopy (cl.simorg, death_location); VectorCopy (cl.simorg, death_location);
} }
void void
Team_NewMap () Team_NewMap (void)
{ {
char *mapname, *t1, *t2; char *mapname, *t1, *t2;
@ -348,7 +348,7 @@ Team_Init_Cvars (void)
*/ */
void void
locs_markloc () locs_markloc (void)
{ {
vec3_t loc; vec3_t loc;
char *mapname, *t1; char *mapname, *t1;
@ -406,7 +406,7 @@ locs_markloc ()
* supports zgip files via zdumploc * supports zgip files via zdumploc
*/ */
void void
locs_dumploc () locs_dumploc (void)
{ {
char *mapname, *t1; char *mapname, *t1;
QFile *locfd = 0; QFile *locfd = 0;
@ -459,7 +459,7 @@ locs_dumploc ()
* removes a loc mark from memory and file * removes a loc mark from memory and file
*/ */
void void
locs_delloc () locs_delloc (void)
{ {
vec3_t loc; vec3_t loc;
location_t *best = NULL, *cur; location_t *best = NULL, *cur;
@ -511,7 +511,7 @@ locs_delloc ()
} }
void void
Locs_Init () Locs_Init (void)
{ {
Cmd_AddCommand ("markloc", locs_markloc); Cmd_AddCommand ("markloc", locs_markloc);
Cmd_AddCommand ("dumploc", locs_dumploc); Cmd_AddCommand ("dumploc", locs_dumploc);