aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorJuan Ramos <[email protected]>2023-01-04 15:57:00 -0700
committerJuan Ramos <[email protected]>2023-01-05 09:09:15 -0700
commit18963a6cc03fe15e3785d353dea6a1ff95115a5e (patch)
treeed640211f3daecd7614f412912cf09ba3044007d /include
parent24115c70bea4bb91e7bd12ef093fbdf6aa9a5222 (diff)
downloadVulkan-Headers-18963a6cc03fe15e3785d353dea6a1ff95115a5e.tar.gz
Vulkan-Headers-18963a6cc03fe15e3785d353dea6a1ff95115a5e.zip
Deprecate vk_sdk_platform.h
closes #316
Diffstat (limited to 'include')
-rw-r--r--include/vulkan/vk_sdk_platform.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/vulkan/vk_sdk_platform.h b/include/vulkan/vk_sdk_platform.h
index 9c567a2..3bdf505 100644
--- a/include/vulkan/vk_sdk_platform.h
+++ b/include/vulkan/vk_sdk_platform.h
@@ -20,6 +20,20 @@
*/
#pragma once
+// Allow users to suppress warnings generated by this header file by defining VK_SDK_PLATFORM_SUPRRESS_DEPRECATION_WARNING
+#ifndef VK_SDK_PLATFORM_SUPRRESS_DEPRECATION_WARNING
+
+#if defined(__GNUC__) && __GNUC__ >= 4
+#warning "vk_sdk_platform.h is deprecated and will be removed in future release! Use VK_SDK_PLATFORM_SUPRRESS_DEPRECATION_WARNING to suppress warning!"
+#endif
+
+// MSVC doesn't support warning directive
+#if defined(_MSC_VER)
+#pragma message("vk_sdk_platform.h is deprecated and will be removed in future release! Use VK_SDK_PLATFORM_SUPRRESS_DEPRECATION_WARNING to suppress warning!")
+#endif
+
+#endif
+
#if defined(_WIN32)
#ifndef NOMINMAX
#define NOMINMAX