forked from fte/fteqw
1
0
Fork 0

Fix noweb build.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5920 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-06-26 20:46:56 +00:00
parent 4816b418c4
commit 0361787967
2 changed files with 10 additions and 1 deletions

View File

@ -765,7 +765,9 @@ struct resolvectx_s
}; };
static void CL_ResolvedServer(void *vctx, void *data, size_t a, size_t b) static void CL_ResolvedServer(void *vctx, void *data, size_t a, size_t b)
{ {
#ifdef HAVE_DTLS
size_t i; size_t i;
#endif
struct resolvectx_s *ctx = vctx; struct resolvectx_s *ctx = vctx;
//something screwed us over... //something screwed us over...

View File

@ -2122,9 +2122,12 @@ static qboolean PM_NameIsInStrings(const char *strings, const char *match)
unsigned int PM_MarkUpdates (void) unsigned int PM_MarkUpdates (void)
{ {
unsigned int changecount = 0; unsigned int changecount = 0;
package_t *p, *o, *b, *e = NULL; package_t *p, *o, *b;
#ifdef WEBCLIENT
package_t *e = NULL;
int bestengine = parse_revision_number(enginerevision, true); int bestengine = parse_revision_number(enginerevision, true);
int them; int them;
#endif
if (manifestpackages) if (manifestpackages)
{ {
@ -2153,6 +2156,7 @@ unsigned int PM_MarkUpdates (void)
for (p = availablepackages; p; p = p->next) for (p = availablepackages; p; p = p->next)
{ {
#ifdef WEBCLIENT
if ((p->flags & DPF_ENGINE) && !(p->flags & DPF_HIDDEN) && bestengine>0 && PM_SignatureOkay(p)) if ((p->flags & DPF_ENGINE) && !(p->flags & DPF_HIDDEN) && bestengine>0 && PM_SignatureOkay(p))
{ {
them = parse_revision_number(p->version, true); them = parse_revision_number(p->version, true);
@ -2163,6 +2167,7 @@ unsigned int PM_MarkUpdates (void)
bestengine = them; bestengine = them;
} }
} }
#endif
if (p->flags & DPF_MARKED) if (p->flags & DPF_MARKED)
{ {
b = NULL; b = NULL;
@ -2188,6 +2193,7 @@ unsigned int PM_MarkUpdates (void)
} }
} }
} }
#ifdef WEBCLIENT
if (e && !(e->flags & DPF_MARKED)) if (e && !(e->flags & DPF_MARKED))
{ {
if (pkg_autoupdate.ival >= UPD_STABLE) if (pkg_autoupdate.ival >= UPD_STABLE)
@ -2196,6 +2202,7 @@ unsigned int PM_MarkUpdates (void)
changecount++; changecount++;
} }
} }
#endif
return changecount; return changecount;
} }