]> git.lyx.org Git - features.git/commitdiff
Avoid compile errors due to the min/max macros on mingw, too
authorEnrico Forestieri <forenr@lyx.org>
Tue, 3 Oct 2006 12:37:18 +0000 (12:37 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 3 Oct 2006 12:37:18 +0000 (12:37 +0000)
* 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

index d40d16cc952791af1b749cc7495afd3544bc040e..e88fd7b2cfa2c7eb43e7a14ecd3ba10bb26a7442 100644 (file)
 
 #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"