From cb2be8723a16f9fdb13582562cb630c945dcd0a7 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Fri, 30 Jun 2023 11:44:33 +0200 Subject: Support building for Godot 4.1 (new default). --- src/init_gdextension.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/init_gdextension.cpp') diff --git a/src/init_gdextension.cpp b/src/init_gdextension.cpp index 85aed1d..47f8177 100644 --- a/src/init_gdextension.cpp +++ b/src/init_gdextension.cpp @@ -66,7 +66,11 @@ void unregister_webrtc_extension_types(ModuleInitializationLevel p_level) { } extern "C" { +#ifdef GDEXTENSION_WEBRTC_40 GDExtensionBool GDE_EXPORT webrtc_extension_init(const GDExtensionInterface *p_interface, const GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization) { +#else +GDExtensionBool GDE_EXPORT webrtc_extension_init(const GDExtensionInterfaceGetProcAddress p_interface, const GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization) { +#endif GDExtensionBinding::InitObject init_obj(p_interface, p_library, r_initialization); init_obj.register_initializer(register_webrtc_extension_types); -- cgit v1.2.3