From 31fe47145b6fa144ad3ddefae4b9fcbf998ba89b Mon Sep 17 00:00:00 2001 From: Hans Breuer Date: Fri, 16 Mar 2001 23:51:50 +0000 Subject: [PATCH] #define PATH_MAX as _MAX_PATH if it isn't defined 2001-03-16 Hans Breuer * plug-ins/common/gqbist.c : #define PATH_MAX as _MAX_PATH if it isn't defined * plug-ins/common/gz.c : #include for win32 _get_osfhandle () * plug-ins/gflare/gflare.c : #include before using G_OS_WIN32 * plug-ins/twain/twain.c : provide a main () entry point to allow to build as console application as well --- ChangeLog | 13 +++++++++++++ plug-ins/common/compressor.c | 1 + plug-ins/common/gqbist.c | 4 ++++ plug-ins/common/gz.c | 1 + plug-ins/common/hrz.c | 2 ++ plug-ins/gflare/gflare.c | 4 ++-- 6 files changed, 23 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9068753bf6..7c2b96590c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2001-03-16 Hans Breuer + + * plug-ins/common/gqbist.c : #define PATH_MAX as _MAX_PATH + if it isn't defined + + * plug-ins/common/gz.c : #include for win32 _get_osfhandle () + + * plug-ins/gflare/gflare.c : #include before using + G_OS_WIN32 + + * plug-ins/twain/twain.c : provide a main () entry point to allow + to build as console application as well + 2001-03-16 Hans Breuer * app/makefile.msc diff --git a/plug-ins/common/compressor.c b/plug-ins/common/compressor.c index 2b1f490c28..a22f3209e6 100644 --- a/plug-ins/common/compressor.c +++ b/plug-ins/common/compressor.c @@ -85,6 +85,7 @@ #define STRICT #define WinMain WinMain_foo #include +#include /* _get_osfhandle */ #undef WinMain #endif diff --git a/plug-ins/common/gqbist.c b/plug-ins/common/gqbist.c index c7bf8dcfb8..6eb8bc37d5 100644 --- a/plug-ins/common/gqbist.c +++ b/plug-ins/common/gqbist.c @@ -62,6 +62,10 @@ #include "libgimp/stdplugins-intl.h" +#ifndef PATH_MAX +#define PATH_MAX _MAX_PATH +#endif + /** qbist renderer ***********************************************************/ #define MAX_TRANSFORMS 36 diff --git a/plug-ins/common/gz.c b/plug-ins/common/gz.c index 2b1f490c28..a22f3209e6 100644 --- a/plug-ins/common/gz.c +++ b/plug-ins/common/gz.c @@ -85,6 +85,7 @@ #define STRICT #define WinMain WinMain_foo #include +#include /* _get_osfhandle */ #undef WinMain #endif diff --git a/plug-ins/common/hrz.c b/plug-ins/common/hrz.c index 1772967e48..2cc4942832 100644 --- a/plug-ins/common/hrz.c +++ b/plug-ins/common/hrz.c @@ -48,6 +48,8 @@ #include #endif +#include /* for G_OS_* */ + #ifdef G_OS_WIN32 #include #endif diff --git a/plug-ins/gflare/gflare.c b/plug-ins/gflare/gflare.c index df6f4192f9..45625c5d6b 100644 --- a/plug-ins/gflare/gflare.c +++ b/plug-ins/gflare/gflare.c @@ -60,6 +60,8 @@ static char rcsid[] = "$Id$"; #include #endif +#include + #ifdef G_OS_WIN32 #include #ifndef S_ISREG @@ -67,8 +69,6 @@ static char rcsid[] = "$Id$"; #endif #endif -#include - #include #include