From 2c1f5181bfc4498de082b0110758438246f4510c Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Wed, 3 Jan 2024 15:33:46 +0100 Subject: [PATCH] fixing compilation issue --- includes/mlx_profile.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/includes/mlx_profile.h b/includes/mlx_profile.h index 2257ea9..90710bc 100644 --- a/includes/mlx_profile.h +++ b/includes/mlx_profile.h @@ -6,7 +6,7 @@ /* By: maldavid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/10 08:49:17 by maldavid #+# #+# */ -/* Updated: 2024/01/03 15:25:44 by maldavid ### ########.fr */ +/* Updated: 2024/01/03 15:33:35 by maldavid ### ########.fr */ /* */ /* ************************************************************************** */ @@ -121,18 +121,23 @@ #if defined(MLX_PLAT_WINDOWS) #define VK_USE_PLATFORM_WIN32_KHR - constexpr const char* VULKAN_LIB_NAME = "vulkan-1.dll"; + #ifdef __cplusplus + constexpr const char* VULKAN_LIB_NAME = "vulkan-1.dll"; + #endif #elif defined(MLX_PLAT_MACOS) #define VK_USE_PLATFORM_MACOS_MVK #define VK_USE_PLATFORM_METAL_EXT - constexpr const char* VULKAN_LIB_NAME = "libvulkan.dylib / libvulkan.1.dylib / libMoltenVK.dylib"; + #ifdef __cplusplus + constexpr const char* VULKAN_LIB_NAME = "libvulkan.dylib / libvulkan.1.dylib / libMoltenVK.dylib"; + #endif #else #define VK_USE_PLATFORM_XLIB_KHR #define VK_USE_PLATFORM_WAYLAND_KHR - constexpr const char* VULKAN_LIB_NAME = "libvulkan.so / libvulkan.so.1"; + #ifdef __cplusplus + constexpr const char* VULKAN_LIB_NAME = "libvulkan.so / libvulkan.so.1"; + #endif #endif - // Checking common assumptions #ifdef __cplusplus #include