From 30f55be93644300143cad35bc5d0e0fce7ad0434 Mon Sep 17 00:00:00 2001 From: msiglreith Date: Thu, 23 Nov 2017 00:02:09 +0100 Subject: [PATCH] Change file-ending for MSVC compiler --- native/{test.c => test.cpp} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename native/{test.c => test.cpp} (98%) 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 = {};