#include <stdlib.h>
#include <sys/types.h>
-#if wxUSE_IOSTREAMH
-# include <fstream.h>
-#else
-# include <fstream>
-#endif
-
-#if wxUSE_RICHEDIT && !defined(__GNUWIN32_OLD__)
+#if wxUSE_RICHEDIT && (!defined(__GNUWIN32_OLD__) || defined(__CYGWIN10__))
#include <richedit.h>
#endif
}
#if wxUSE_RICHEDIT2
+#ifndef CFM_BACKCOLOR
+#define CFM_BACKCOLOR 0x04000000
+#endif
+
if ( wxRichEditModule::GetLoadedVersion() > 1 && style.HasBackgroundColour() )
{
cf.dwMask |= CFM_BACKCOLOR;