diff options
Diffstat (limited to 'src/init_gdextension.cpp')
-rw-r--r-- | src/init_gdextension.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |