Audio plugin host https://kx.studio/carla
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.

fix-mingw-build.patch 1.0KB

11 years ago
12345678910111213141516171819202122232425262728293031323334
  1. diff --git a/source/libs/lilv/lilv-0.16.0/src/util.c b/source/libs/lilv/lilv-0.16.0/src/util.c
  2. index 6286446..f21383b 100644
  3. --- a/source/libs/lilv/lilv-0.16.0/src/util.c
  4. +++ b/source/libs/lilv/lilv-0.16.0/src/util.c
  5. @@ -29,7 +29,6 @@
  6. #include <string.h>
  7. #ifdef _WIN32
  8. -# define _WIN32_WINNT 0x0600 /* for CreateSymbolicLink */
  9. # include <windows.h>
  10. # include <direct.h>
  11. # include <io.h>
  12. @@ -426,7 +425,7 @@ lilv_symlink(const char* oldpath, const char* newpath)
  13. int ret = 0;
  14. if (strcmp(oldpath, newpath)) {
  15. #ifdef _WIN32
  16. - ret = !CreateSymbolicLink(newpath, oldpath, 0);
  17. + ret = 0;
  18. #else
  19. ret = symlink(oldpath, newpath);
  20. #endif
  21. diff --git a/source/libs/lilv/serd-0.18.2/src/node.c b/source/libs/lilv/serd-0.18.2/src/node.c
  22. index 065ff87..63730c1 100644
  23. --- a/source/libs/lilv/serd-0.18.2/src/node.c
  24. +++ b/source/libs/lilv/serd-0.18.2/src/node.c
  25. @@ -22,7 +22,7 @@
  26. #include <math.h>
  27. #include <float.h>
  28. -#ifdef _WIN32
  29. +#if defined(_WIN32) && !defined(__MINGW32__)
  30. # define isnan(x) _isnan(x)
  31. # define isinf(x) (!_finite(x))
  32. #endif