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.
2 parents a21f718 + 2c9b68f commit c3a4fa0Copy full SHA for c3a4fa0
api/test/singleton/singleton_test.cc
@@ -55,6 +55,8 @@ void do_something()
55
56
# ifdef _WIN32
57
HMODULE component_g = LoadLibraryA("component_g.dll");
58
+# elif defined(__APPLE__)
59
+ void *component_g = dlopen("libcomponent_g.dylib", RTLD_NOW);
60
# else
61
void *component_g = dlopen("libcomponent_g.so", RTLD_NOW);
62
# endif
@@ -81,6 +83,8 @@ void do_something()
81
83
82
84
85
HMODULE component_h = LoadLibraryA("component_h.dll");
86
87
+ void *component_h = dlopen("libcomponent_h.dylib", RTLD_NOW);
88
89
void *component_h = dlopen("libcomponent_h.so", RTLD_NOW);
90
0 commit comments