From 69d72462b6da2a2b9aa5b9f2811aecd7deeb105d Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 3 Oct 2006 12:37:18 +0000 Subject: [PATCH] Avoid compile errors due to the min/max macros on mingw, too * src/support/fontutils.C: Undefine the min and max macros if they are defined git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15210 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/fontutils.C | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/support/fontutils.C b/src/support/fontutils.C index d40d16cc95..e88fd7b2cf 100644 --- a/src/support/fontutils.C +++ b/src/support/fontutils.C @@ -25,8 +25,10 @@ #if defined(_WIN32) || (defined(__CYGWIN__) && defined(X_DISPLAY_MISSING)) #include "windows.h" -#ifdef __CYGWIN__ +#ifdef max #undef max +#endif +#ifdef min #undef min #endif #include "support/os.h" -- 2.39.2