diff --git a/native/test.c b/native/test.cpp similarity index 98% rename from native/test.c rename to native/test.cpp index fc7cf93..65095f1 100644 --- a/native/test.c +++ b/native/test.cpp @@ -4,13 +4,13 @@ #include #include -VkSurfaceKHR vkCreateSurfaceGFX(VkInstance); +extern "C" VkSurfaceKHR vkCreateSurfaceGFX(VkInstance); int main() { printf("starting the portability test\n"); VkInstance instance; - VkResult res = 0; + VkResult res = (VkResult)0; unsigned int i; VkInstanceCreateInfo inst_info = {};