0006-Fix-mingw-dllexport.patch 382 B

12345678910111213
  1. diff --git a/port/cpl_port.h b/port/cpl_port.h
  2. index 9e3ebbb..130af04 100644
  3. --- a/port/cpl_port.h
  4. +++ b/port/cpl_port.h
  5. @@ -343,7 +343,7 @@ typedef unsigned int GUIntptr_t;
  6. #endif
  7. #ifndef CPL_DLL
  8. -#if defined(_MSC_VER) && !defined(CPL_DISABLE_DLL)
  9. +#if defined(WIN32) && !defined(CPL_DISABLE_DLL)
  10. # ifdef GDAL_COMPILATION
  11. # define CPL_DLL __declspec(dllexport)
  12. # else