summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLenny Komow <[email protected]>2020-07-27 13:16:17 -0600
committerLenny Komow <[email protected]>2020-08-07 13:08:45 -0600
commitf075211027734c93ee03e525c7ce8867b9a7f607 (patch)
treeb66e5c0be52f005f2191cacb39e9f3ceab457643
parent8971273d00ef14eeea7828bfbbb07fb8f9b174d7 (diff)
downloadVulkan-Headers-f075211027734c93ee03e525c7ce8867b9a7f607.tar.gz
Vulkan-Headers-f075211027734c93ee03e525c7ce8867b9a7f607.zip
Update vk_icd.h with proper extern "C" declaration
-rw-r--r--include/vulkan/vk_icd.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/vulkan/vk_icd.h b/include/vulkan/vk_icd.h
index 6b4007b..03411e7 100644
--- a/include/vulkan/vk_icd.h
+++ b/include/vulkan/vk_icd.h
@@ -65,13 +65,16 @@ typedef VkResult (VKAPI_PTR *PFN_vk_icdEnumerateAdapterPhysicalDevices)(VkInstan
// Prototypes for loader/ICD interface
#if !defined(VK_NO_PROTOTYPES)
-VKAPI_ATTR VkResult VKAPI_CALL vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t* pVersion);
-VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vk_icdGetInstanceProcAddr(VkInstance instance, const char* pName);
-VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vk_icdGetPhysicalDeviceProcAddr(VkInstance isntance, const char* pName);
+extern "C"
+{
+ VKAPI_ATTR VkResult VKAPI_CALL vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t* pVersion);
+ VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vk_icdGetInstanceProcAddr(VkInstance instance, const char* pName);
+ VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vk_icdGetPhysicalDeviceProcAddr(VkInstance isntance, const char* pName);
#if defined(VK_USE_PLATFORM_WIN32_KHR)
-VKAPI_ATTR VkResult VKAPI_CALL vk_icdEnumerateAdapterPhysicalDevices(VkInstance instance, LUID adapterLUID,
- uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices);
+ VKAPI_ATTR VkResult VKAPI_CALL vk_icdEnumerateAdapterPhysicalDevices(VkInstance instance, LUID adapterLUID,
+ uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices);
#endif
+}
#endif
/*