#include "support/systemcall.h"
#ifdef __APPLE__
+#include "debug.h"
#include <ApplicationServices/ApplicationServices.h>
+using std::endl;
#endif
-#ifdef _WIN32
+#if defined(_WIN32) || (defined(__CYGWIN__) && defined(X_DISPLAY_MISSING))
#include "windows.h"
+#ifdef max
+#undef max
+#endif
+#ifdef min
+#undef min
+#endif
#include "support/os.h"
#include "support/package.h"
#include "support/path.h"
lyxerr << "FMActivateFonts err = " << err << endl;
#endif
-#ifdef _WIN32
+#if defined(_WIN32) || (defined(__CYGWIN__) && defined(X_DISPLAY_MISSING))
// Windows only: Add BaKoMa TrueType font resources
string const fonts_dir = addPath(package().system_support(), "fonts");
void restoreFontResources()
{
-#ifdef _WIN32
+#if defined(_WIN32) || (defined(__CYGWIN__) && defined(X_DISPLAY_MISSING))
// Windows only: Remove BaKoMa TrueType font resources
string const fonts_dir = addPath(package().system_support(), "fonts");