mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +00:00
DynamicLink: Tell compiler about invisible calls
This makes DynamicLink, and in fact all Demos, build cleanly with -Wmissing-declarations. Note that this won't be necessary for 'normal' dynamic shared objects, as those usually already declare their symbols in a header file.
This commit is contained in:
parent
9e1ed4bb05
commit
b493c6cd39
1 changed files with 6 additions and 0 deletions
|
@ -55,6 +55,12 @@ private:
|
|||
Global g_glob { 5 };
|
||||
|
||||
extern "C" {
|
||||
|
||||
// Tell the compiler that these symbols might be accessed from other places:
|
||||
extern int global_lib_variable;
|
||||
void global_lib_function();
|
||||
const char* other_lib_function(int my_argument);
|
||||
|
||||
int global_lib_variable = 1234;
|
||||
|
||||
void global_lib_function()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue