diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2023-07-01 19:43:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-01 19:43:42 +0200 |
commit | 6e2262b6c33bd0fa2cb67ff6d4a2f360f0c15913 (patch) | |
tree | 20c0c99c5217792e054f876712a54ae8b4f1eec8 /src/init_gdextension.cpp | |
parent | d278661d767f5e1f8f68af2d0a706f5f044aa5d3 (diff) | |
parent | cb2be8723a16f9fdb13582562cb630c945dcd0a7 (diff) | |
download | fork-godot-webrtc-native-6e2262b6c33bd0fa2cb67ff6d4a2f360f0c15913.tar.gz fork-godot-webrtc-native-6e2262b6c33bd0fa2cb67ff6d4a2f360f0c15913.tar.bz2 fork-godot-webrtc-native-6e2262b6c33bd0fa2cb67ff6d4a2f360f0c15913.zip |
Merge pull request #113 from Faless/spike/4.1
Support building for Godot 4.1 (new default).
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); |