wraphelper.h 667 B

1234567891011121314151617181920212223242526
  1. /* Copyright (C) 1883 Thomas Edison - All Rights Reserved
  2. * You may use, distribute and modify this code under the
  3. * terms of the GPLv3 license, which unfortunately won't be
  4. * written for another century.
  5. *
  6. * You should have received a copy of the LICENSE file with
  7. * this file.
  8. */
  9. #pragma once
  10. #include <libdev/Log.h>
  11. #if defined(_WIN32)
  12. #include <windows.h>
  13. void* wrap_dlopen(const char* filename);
  14. void* wrap_dlsym(void* h, const char* sym);
  15. int wrap_dlclose(void* h);
  16. #else
  17. /* assume we can use dlopen itself... */
  18. #include <dlfcn.h>
  19. void* wrap_dlopen(const char* filename);
  20. void* wrap_dlsym(void* h, const char* sym);
  21. int wrap_dlclose(void* h);
  22. #endif