Fix Android Vulkan capturing

Add __attribute__((visibility("default"))) to VK_LAYER_EXPORT on Android.
It used to be defined in the Vulkan headers and changed when the update to the latest Vulkan headers was integrated in 5118f08e23
This commit is contained in:
Jake Turner
2023-07-24 16:44:54 +01:00
parent 1301d90418
commit 9f72b87bc7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -44,7 +44,7 @@
#undef VK_LAYER_EXPORT
#define VK_LAYER_EXPORT extern "C" __declspec(dllexport)
#elif ENABLED(RDOC_LINUX)
#elif ENABLED(RDOC_LINUX) || ENABLED(RDOC_ANDROID)
#undef VK_LAYER_EXPORT
#define VK_LAYER_EXPORT __attribute__((visibility("default")))
+1 -1
View File
@@ -33,7 +33,7 @@
#include "vk_resources.h"
#undef VK_LAYER_EXPORT
#define VK_LAYER_EXPORT
#define VK_LAYER_EXPORT __attribute__((visibility("default")))
// The android loader has limitations at present that require the enumerate functions
// to be exported with the precise canonical names. We just forward them to the