diff options
author | quou <quou@disroot.org> | 2024-12-27 18:57:00 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-27 19:00:03 +1100 |
commit | 9278e969f71e7a70c68f9476513e01648cb49d86 (patch) | |
tree | a92e71c595d893311878ac3f2c4213c48f8eb9bf /video.cpp | |
parent | d920e5d62020d751ccaa3491cc66275ade749011 (diff) |
Fix linux build
Diffstat (limited to 'video.cpp')
-rw-r--r-- | video.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -26,6 +26,8 @@ extern "C" { #include "glad_vk.h" +#include <string.h> + #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); |