From: Enrico Forestieri Date: Tue, 3 Oct 2006 00:58:53 +0000 (+0000) Subject: Avoid a compilation error on cygwin X-Git-Tag: 1.6.10~12480 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=42b65db61253186def2e813ab486d351b00a6032;p=features.git Avoid a compilation error on cygwin * src/support/fontutils.C: Undefine the min and max macros after inclusion of windows.h on cygwin. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15203 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/fontutils.C b/src/support/fontutils.C index 1d3e2d24f0..d40d16cc95 100644 --- a/src/support/fontutils.C +++ b/src/support/fontutils.C @@ -25,6 +25,10 @@ #if defined(_WIN32) || (defined(__CYGWIN__) && defined(X_DISPLAY_MISSING)) #include "windows.h" +#ifdef __CYGWIN__ +#undef max +#undef min +#endif #include "support/os.h" #include "support/package.h" #include "support/path.h"