summaryrefslogtreecommitdiff
path: root/src/init_gdextension.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-06-30 11:44:33 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-06-30 16:52:36 +0200
commitcb2be8723a16f9fdb13582562cb630c945dcd0a7 (patch)
tree20c0c99c5217792e054f876712a54ae8b4f1eec8 /src/init_gdextension.cpp
parentd278661d767f5e1f8f68af2d0a706f5f044aa5d3 (diff)
downloadfork-godot-webrtc-native-cb2be8723a16f9fdb13582562cb630c945dcd0a7.tar.gz
fork-godot-webrtc-native-cb2be8723a16f9fdb13582562cb630c945dcd0a7.tar.bz2
fork-godot-webrtc-native-cb2be8723a16f9fdb13582562cb630c945dcd0a7.zip
Support building for Godot 4.1 (new default).
Diffstat (limited to 'src/init_gdextension.cpp')
-rw-r--r--src/init_gdextension.cpp4
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);