diff options
Diffstat (limited to 'libbutl/uuid-linux.cxx')
-rw-r--r-- | libbutl/uuid-linux.cxx | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/libbutl/uuid-linux.cxx b/libbutl/uuid-linux.cxx index 7396910..cae8aae 100644 --- a/libbutl/uuid-linux.cxx +++ b/libbutl/uuid-linux.cxx @@ -14,6 +14,8 @@ #include <utility> // move() #include <system_error> +#include <libbutl/utility.mxx> // function_cast() + using namespace std; namespace butl @@ -48,17 +50,6 @@ namespace butl static void* libuuid; - // Use a union to cleanly cast dlsym() result (void*) to a function pointer. - // - template <typename F> - static inline F - function_cast (void* p) - { - union { void* p; F f; } r; - r.p = p; - return r.f; - }; - static inline void dlfail (string what) { |