File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 67
67
})
68
68
env = env .Clone ()
69
69
70
+ # Patch mingw SHLIBSUFFIX.
71
+ if env ["platform" ] == "windows" and env ["use_mingw" ]:
72
+ env ["SHLIBSUFFIX" ] = ".dll"
73
+
70
74
opts .Update (env )
71
75
72
76
target = env ["target" ]
Original file line number Diff line number Diff line change 37
37
#include " WebRTCLibDataChannel.hpp"
38
38
#include " WebRTCLibPeerConnection.hpp"
39
39
40
+ #ifdef _WIN32
41
+ // See upstream godot-cpp GH-771.
42
+ #undef GDN_EXPORT
43
+ #define GDN_EXPORT __declspec (dllexport)
44
+ #endif
45
+
40
46
using namespace godot ;
41
47
using namespace godot_webrtc ;
42
48
Original file line number Diff line number Diff line change 34
34
#include < gdnative_api_struct.gen.h>
35
35
#include < net/godot_net.h>
36
36
37
+ #ifdef _WIN32
38
+ // See upstream godot GH-62173.
39
+ #undef GDN_EXPORT
40
+ #define GDN_EXPORT __declspec (dllexport)
41
+ #endif
42
+
37
43
/* Singleton */
38
44
static bool _singleton = false ;
39
45
static const godot_object *_singleton_lib = NULL ;
You can’t perform that action at this time.
0 commit comments