From 9278e969f71e7a70c68f9476513e01648cb49d86 Mon Sep 17 00:00:00 2001 From: quou Date: Fri, 27 Dec 2024 18:57:00 +1100 Subject: Fix linux build --- video.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'video.cpp') diff --git a/video.cpp b/video.cpp index 6677bbc..1e81d88 100644 --- a/video.cpp +++ b/video.cpp @@ -26,6 +26,8 @@ extern "C" { #include "glad_vk.h" +#include + #ifdef min /* use std::min and max instead */ #undef min #endif @@ -33,6 +35,10 @@ extern "C" { #undef max #endif +#if !defined(plat_win) +#define __stdcall +#endif + const char* device_exts[] = { VK_KHR_SWAPCHAIN_EXTENSION_NAME, VK_EXT_CUSTOM_BORDER_COLOR_EXTENSION_NAME @@ -421,10 +427,6 @@ struct Shader_Vk : public Shader, public Late_Terminated { char* buf, int size ); - bool init_vertex_format( - Device_Vk* dev, - FILE* f - ); void destroy(Device_Vk* dev) override; int find_descriptor(const char* name); -- cgit v1.2.3-54-g00ecf