fixing compilation issues

This commit is contained in:
2024-09-14 09:55:19 +02:00
parent cd29248fc6
commit 7f2d60f21d
26 changed files with 1036 additions and 1241 deletions

View File

@@ -1,7 +1,9 @@
#ifndef __MLX_VULKAN_LOADER__
#define __MLX_VULKAN_LOADER__
#ifdef _WIN32
#include <mlx_profile.h>
#ifdef MLX_PLAT_WINDOWS
typedef const char* LPCSTR;
typedef struct HINSTANCE__* HINSTANCE;
typedef HINSTANCE HMODULE;
@@ -31,7 +33,7 @@ namespace mlx
void LoadDeviceFunctions(void* context, PFN_vkVoidFunction (*load)(void*, const char*)) noexcept;
private:
#ifdef _WIN32
#ifdef MLX_PLAT_WINDOWS
HMODULE p_module = nullptr;
#else
Handle p_module = nullptr;