We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4328c0 commit 2c9b68fCopy full SHA for 2c9b68f
api/test/singleton/singleton_test.cc
@@ -56,6 +56,8 @@ void do_something()
56
57
# ifdef _WIN32
58
HMODULE component_g = LoadLibraryA("component_g.dll");
59
+# elif defined(__APPLE__)
60
+ void *component_g = dlopen("libcomponent_g.dylib", RTLD_NOW);
61
# else
62
void *component_g = dlopen("libcomponent_g.so", RTLD_NOW);
63
# endif
@@ -82,6 +84,8 @@ void do_something()
82
84
83
85
86
HMODULE component_h = LoadLibraryA("component_h.dll");
87
88
+ void *component_h = dlopen("libcomponent_h.dylib", RTLD_NOW);
89
90
void *component_h = dlopen("libcomponent_h.so", RTLD_NOW);
91
0 commit comments