Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.6KB

  1. /*
  2. * dlfcn-win32
  3. * Copyright (c) 2007 Ramiro Polla
  4. *
  5. * dlfcn-win32 is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2.1 of the License, or (at your option) any later version.
  9. *
  10. * dlfcn-win32 is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with dlfcn-win32; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  18. */
  19. #ifndef DLFCN_H
  20. #define DLFCN_H
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. #if defined(DLFCN_WIN32_EXPORTS)
  25. # define DLFCN_EXPORT __declspec(dllexport)
  26. #else
  27. # define DLFCN_EXPORT
  28. #endif
  29. /* POSIX says these are implementation-defined.
  30. * To simplify use with Windows API, we treat them the same way.
  31. */
  32. #define RTLD_LAZY 0
  33. #define RTLD_NOW 0
  34. #define RTLD_GLOBAL (1 << 1)
  35. #define RTLD_LOCAL (1 << 2)
  36. /* These two were added in The Open Group Base Specifications Issue 6.
  37. * Note: All other RTLD_* flags in any dlfcn.h are not standard compliant.
  38. */
  39. #define RTLD_DEFAULT 0
  40. #define RTLD_NEXT 0
  41. DLFCN_EXPORT void *dlopen ( const char *file, int mode );
  42. DLFCN_EXPORT int dlclose(void *handle);
  43. DLFCN_EXPORT void *dlsym(void *handle, const char *name);
  44. DLFCN_EXPORT char *dlerror(void);
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48. #endif /* DLFCN_H */