Commit d068d05aa514f9b1c32fd489f2e1e6a45da1f70f

Ryan C. Gordon 2020-10-05T14:01:08

url: Make sure Haiku's C++ implementation is flagged as 'extern "C"'

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/misc/haiku/SDL_sysurl.cc b/src/misc/haiku/SDL_sysurl.cc
index 150028d..72039a8 100644
--- a/src/misc/haiku/SDL_sysurl.cc
+++ b/src/misc/haiku/SDL_sysurl.cc
@@ -23,6 +23,8 @@
 #include "SDL_error.h"
 #include <Url.h>
 
+extern "C" { int SDL_SYS_OpenURL(const char *url); }
+
 int
 SDL_SYS_OpenURL(const char *url)
 {