[Gegl-developer] babl compilation fails on win32 with mingw: babl-palette.c:93:23: error: 'INT_MAX' undeclared


I'm trying to compile babl-0.1.10 on windows using mingw and get the
following error:

babl-palette.c:93:23: error: 'INT_MAX' undeclared

--Full Output--
$ mingw32-make
C:/MinGW/bin/mingw32-make  all-recursive
mingw32-make[1]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10'
Making all in babl
mingw32-make[2]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10/babl'
Making all in base
mingw32-make[3]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10/babl/base'
mingw32-make[3]: Nothing to be done for `all'.
mingw32-make[3]: Leaving directory
`k:/daten/programmierung/libraries/babl-0.1.1 0/babl/base'
mingw32-make[3]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10/babl'
  CC     babl-palette.lo
babl-palette.c: In function 'babl_palette_lookup':
babl-palette.c:93:23: error: 'INT_MAX' undeclared (first use in this
function) babl-palette.c:93:23: note: each undeclared identifier is
reported only once for each function it appears in
mingw32-make[3]: *** [babl-palette.lo] Error 1

As far as I can see, INT_MAX is not being declared. I didn't find any
MAXINT either:

$ grep -R INT_MAX *
ChangeLog:    palette: use INT_MAX instead of MAXINT
babl/babl-palette.c:      int best_diff = INT_MAX;

$ grep -R MAXINT *
ChangeLog:    palette: use INT_MAX instead of MAXINT


Please help

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]