Re: Can't Build the GIMP
Tor Lillqvist <[email protected]>
| Newsgroups | gmane.comp.video.gimp.windows.devel |
|---|---|
| Message-ID | <[email protected]> |
Kevin Myers writes: > Had to change DATADIR to GDATDIR in the Makefile for libgimp and in > gimpenv.c, because MinGW had a conflicting definition and use of > DATADIR in one of its windows related header files. > DATADIR is in my d:\MinGW\include\objidl.h file. As you can see > below, it has been defined as typedef that is completely unrelated > to the usage in the GIMP. Hmm, I do have DATADIR defined there, too, but gimpenv.c only includes windows.h, which does not include objidl.h (even indirectly). At least not my version. Anyway, as DATADIR isn't used in gimpenv.c on Win32 (we don't want any compile-time hardcoded paths, and determine the datadir at run-time instead), the simplest fix would be to #undef DATADIR before the #include <windows.h>. --tml