CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RFIODPMPlugin.cc
Go to the documentation of this file.
2 #include <dlfcn.h>
3 namespace {
4 // dlopen libdpm on startup, so that symbols get resolved even if we don't
5 // explicitly link against it. This way we do not need to have
6 // libdpm available at buildtime.
7 struct Dummy
8 {
9  Dummy()
10  {
11 #ifdef __APPLE__
12  dlopen("libdpm.dylib", RTLD_NOW|RTLD_GLOBAL);
13 #else
14  dlopen("libdpm.so", RTLD_NOW|RTLD_GLOBAL);
15 #endif
16  }
17 };
18 #ifndef __clang_analyzer__
19 static Dummy foo;
20 #endif
21 }
#define DEFINE_EDM_PLUGIN(factory, type, name)