expose_symbols.patch 665 B

12345678910111213141516171819202122232425262728
  1. diff --git sqlite3.c sqlite3.c
  2. index 123c65e..7b22843 100644
  3. --- sqlite3.c
  4. +++ sqlite3.c
  5. @@ -258,6 +258,8 @@
  6. extern "C" {
  7. #endif
  8. +// Always dll export, providing only a shared lib for sqlite.
  9. +#define SQLITE_API __declspec( dllexport )
  10. /*
  11. ** Provide the ability to override linkage features of the interface.
  12. diff --git sqlite3.h sqlite3.h
  13. index 37d1024..abeca23 100644
  14. --- sqlite3.h
  15. +++ sqlite3.h
  16. @@ -41,6 +41,10 @@
  17. extern "C" {
  18. #endif
  19. +#ifndef SQLITE_EXPORTS
  20. +// Always dll import, providing only a shared lib for sqlite.
  21. +#define SQLITE_API __declspec( dllimport )
  22. +#endif
  23. /*
  24. ** Provide the ability to override linkage features of the interface.