diff options
author | Lenny Komow <[email protected]> | 2020-07-27 13:28:34 -0600 |
---|---|---|
committer | Lenny Komow <[email protected]> | 2020-08-07 13:09:29 -0600 |
commit | 471a35d21d6463eedddbe9c57d9ba52e8349c651 (patch) | |
tree | 34de764c43c0f81d582a32eee207286e4181772e | |
parent | f075211027734c93ee03e525c7ce8867b9a7f607 (diff) | |
download | Vulkan-Headers-471a35d21d6463eedddbe9c57d9ba52e8349c651.tar.gz Vulkan-Headers-471a35d21d6463eedddbe9c57d9ba52e8349c651.zip |
Add missing ifdef for extern "C"
-rw-r--r-- | include/vulkan/vk_icd.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/vulkan/vk_icd.h b/include/vulkan/vk_icd.h index 03411e7..0f992c0 100644 --- a/include/vulkan/vk_icd.h +++ b/include/vulkan/vk_icd.h @@ -65,8 +65,9 @@ typedef VkResult (VKAPI_PTR *PFN_vk_icdEnumerateAdapterPhysicalDevices)(VkInstan // Prototypes for loader/ICD interface #if !defined(VK_NO_PROTOTYPES) -extern "C" -{ +#ifdef __cplusplus +extern "C" { +#endif 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); @@ -74,8 +75,10 @@ extern "C" VKAPI_ATTR VkResult VKAPI_CALL vk_icdEnumerateAdapterPhysicalDevices(VkInstance instance, LUID adapterLUID, uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices); #endif +#ifdef __cplusplus } #endif +#endif /* * The ICD must reserve space for a pointer for the loader's dispatch |