summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--src/Fl_win32.cxx2
2 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e5124c086..dd1a1ef36 100644
--- a/configure.ac
+++ b/configure.ac
@@ -868,7 +868,7 @@ case $host_os_gui in
CXXFLAGS="-mwindows $CXXFLAGS"
LDFLAGS="-mwindows $LDFLAGS"
DSOFLAGS="-mwindows $DSOFLAGS"
- LIBS="$LIBS -lole32 -luuid -lcomctl32"
+ LIBS="$LIBS -lole32 -luuid -lcomctl32 -lws2_32"
BUILD="WIN"
if test "x$with_optim" = x; then
dnl Avoid -Os optimization on Cygwin/MinGW
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index 74028e61f..4e489c7ab 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -43,6 +43,8 @@
#include <windows.h>
#include <ole2.h>
#include <shellapi.h>
+// Some versions of MinGW now require us to explicitly include winerror to get S_OK defined
+#include <winerror.h>
#include <math.h> // for ceil()
void fl_free_fonts(void);