From 47f6bc73e967648f63ac70ed2ebe1ebe50276135 Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Mon, 16 Dec 2024 16:17:17 +0100 Subject: [PATCH] fixing macos compilation issue --- includes/mlx_profile.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/includes/mlx_profile.h b/includes/mlx_profile.h index 99f2661..d525c45 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/12/14 17:58:37 by maldavid ### ########.fr */ +/* Updated: 2024/12/16 16:16:07 by maldavid ### ########.fr */ /* */ /* ************************************************************************** */ @@ -121,21 +121,15 @@ #if defined(MLX_PLAT_WINDOWS) #define VK_USE_PLATFORM_WIN32_KHR - #ifdef __cplusplus - constexpr const char* VULKAN_LIB_NAME = "vulkan-1.dll"; - #endif + #define VULKAN_LIB_NAME "vulkan-1.dll" #elif defined(MLX_PLAT_MACOS) #define VK_USE_PLATFORM_MACOS_MVK #define VK_USE_PLATFORM_METAL_EXT - #ifdef __cplusplus - constexpr const char* VULKAN_LIB_NAME = "libvulkan.dylib / libvulkan.1.dylib / libMoltenVK.dylib"; - #endif + #define VULKAN_LIB_NAME "libvulkan.dylib / libvulkan.1.dylib / libMoltenVK.dylib" #else #define VK_USE_PLATFORM_XLIB_KHR #define VK_USE_PLATFORM_WAYLAND_KHR - #ifdef __cplusplus - constexpr const char* VULKAN_LIB_NAME = "libvulkan.so / libvulkan.so.1"; - #endif + #define VULKAN_LIB_NAME "libvulkan.so / libvulkan.so.1" #endif #if !defined(MLX_FORCEINLINE)