dllmain.cpp.in 565 B

1234567891011121314151617181920
  1. // Generated file for Linux compatibility
  2. // Empty implementation of DLL main functions
  3. #if defined(_WIN32)
  4. #error "This file should only be used on Linux builds"
  5. #endif
  6. // DllMain replacement for Linux
  7. __attribute__((constructor)) static void init_library(void) {}
  8. __attribute__((destructor)) static void exit_library(void) {}
  9. // Export symbols for Linux
  10. #if defined(__GNUC__) && __GNUC__ >= 4
  11. #define DLL_EXPORT __attribute__((visibility("default")))
  12. #else
  13. #define DLL_EXPORT
  14. #endif
  15. // Prevent "no symbols" warning
  16. DLL_EXPORT void _crc64_dummy_export(void) {}