diff -Naur blender-4.5.2/intern/ghost/intern/GHOST_XrContext.cc blender-4.5.2-patched/intern/ghost/intern/GHOST_XrContext.cc
--- blender-4.5.2/intern/ghost/intern/GHOST_XrContext.cc	2025-08-26 12:30:45.598525400 +0300
+++ blender-4.5.2-patched/intern/ghost/intern/GHOST_XrContext.cc	2025-08-26 12:31:39.389032400 +0300
@@ -187,7 +187,7 @@
   }
 }
 
-static XrBool32 debug_messenger_func(XrDebugUtilsMessageSeverityFlagsEXT /*messageSeverity*/,
+static XrBool32 __stdcall debug_messenger_func(XrDebugUtilsMessageSeverityFlagsEXT /*messageSeverity*/,
                                      XrDebugUtilsMessageTypeFlagsEXT /*messageTypes*/,
                                      const XrDebugUtilsMessengerCallbackDataEXT *callbackData,
                                      void * /*userData*/)
