mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
Fix a couple of windows build issues
There's still the problem with unused variables when building for windows because of vulkan debug stuff, but this fixes the important errors. It actually still works (at least under wine).
This commit is contained in:
parent
a6e75b7617
commit
300badc96a
2 changed files with 7 additions and 1 deletions
|
@ -590,7 +590,7 @@ Vulkan_Lighting_Setup (vulkan_ctx_t *ctx)
|
|||
};
|
||||
}
|
||||
|
||||
QFV_CreateResource (ctx->device, lctx->light_resources);
|
||||
QFV_CreateResource (device, lctx->light_resources);
|
||||
|
||||
lctx->splat_verts = splat_verts[0].buffer.buffer;
|
||||
lctx->splat_inds = splat_inds[0].buffer.buffer;
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
|
||||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
@ -70,6 +71,11 @@
|
|||
|
||||
#include "qw/protocol.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
typedef uint32_t in_addr_t;
|
||||
typedef uint16_t in_port_t;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_IN_PKTINFO
|
||||
# ifndef SOL_IP // BSD-based stacks don't define this.
|
||||
# define SOL_IP IPPROTO_IP
|
||||
|
|
Loading…
Reference in a new issue