Ticket #519: mingw_updated3.diff

File mingw_updated3.diff, 1.6 KB (added by neteler, 15 years ago)

patch reduced to outstanding changes

  • raster/Makefile

     
    4040        r.kappa \
    4141        r.lake \
    4242        r.le \
    43         r.li \
    4443        r.los \
    4544        r.mapcalc \
    4645        r.median \
     
    128127
    129128include $(MODULE_TOPDIR)/include/Make/Platform.make
    130129
    131 ifneq ($(MINGW),)
     130ifneq ($(strip $(MINGW)),)
    132131    SUBDIRS += r.li
    133132endif
    134133
  • lib/g3d/g3dcache.c

     
    121121        return 0;
    122122    }
    123123
    124     index = *((int *)(xdr + nBytes));
     124    index = *((int *)((unsigned char *)xdr + nBytes));
    125125    map->index[index] = -pos - 2;
    126126
    127127    map->cachePosLast--;
  • lib/gis/spawn.c

     
    204204
    205205#ifdef __MINGW32__
    206206
    207 static int do_redirects(struct redirect *redirects, int num_redirects)
     207static void do_redirects(struct redirect *redirects, int num_redirects)
    208208{
    209209    if (num_redirects > 0)
    210210        G_fatal_error
  • lib/gis/gdal.c

     
    1919# ifdef _WIN32
    2020#  include <windows.h>
    2121# endif
     22# undef CPL_STDCALL
     23# define CPL_STDCALL
    2224#endif
    2325
    2426static void CPL_STDCALL (*pGDALAllRegister)(void);
     
    7779        "libgdal.so",
    7880# endif
    7981# ifdef _WIN32
     82  "gdal16.dll",
     83  "gdal15.dll",
    8084        "gdal11.dll",
    8185        "gdal.1.0.dll",
    8286        "gdal.dll",