From 42b65db61253186def2e813ab486d351b00a6032 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 3 Oct 2006 00:58:53 +0000 Subject: [PATCH] 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 --- src/support/fontutils.C | 4 ++++ 1 file changed, 4 insertions(+) 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" -- 2.39.2