]> git.lyx.org Git - lyx.git/commitdiff
Avoid a compilation error on cygwin
authorEnrico Forestieri <forenr@lyx.org>
Tue, 3 Oct 2006 00:58:53 +0000 (00:58 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 3 Oct 2006 00:58:53 +0000 (00:58 +0000)
* 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

index 1d3e2d24f03e616fdbf046983bd88a613822d159..d40d16cc952791af1b749cc7495afd3544bc040e 100644 (file)
 
 #if defined(_WIN32) || (defined(__CYGWIN__) && defined(X_DISPLAY_MISSING))
 #include "windows.h"
 
 #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"
 #include "support/os.h"
 #include "support/package.h"
 #include "support/path.h"