summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorIan MacArthur <imacarthur@gmail.com>2016-01-28 11:18:01 +0000
committerIan MacArthur <imacarthur@gmail.com>2016-01-28 11:18:01 +0000
commite2cc1a80f09b7b33665be2ae14ef20673f9d6f7b (patch)
tree10d398c9dcd94e27e5d95ffc277dbe818437a7d1 /FL
parent74aa645d8f4193b3796a6cd1e8ccea20cfb9f9ea (diff)
Some trivial adjustments to support building
under Win32/mingw with the configure/make on Win7 with Msys. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11073 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Native_File_Chooser.H8
1 files changed, 8 insertions, 0 deletions
diff --git a/FL/Fl_Native_File_Chooser.H b/FL/Fl_Native_File_Chooser.H
index 0bf4b11ab..2fdb8b555 100644
--- a/FL/Fl_Native_File_Chooser.H
+++ b/FL/Fl_Native_File_Chooser.H
@@ -27,8 +27,16 @@
#ifdef WIN32
// #define _WIN32_WINNT 0x0501 // needed for OPENFILENAME's 'FlagsEx'
+#if defined(FL_LIBRARY)
+# include <windows.h>
+# include <commdlg.h> // OPENFILENAMEW, GetOpenFileName()
+# include <shlobj.h> // BROWSEINFOW, SHBrowseForFolder()
+typedef OPENFILENAMEW fl_OPENFILENAMEW;
+typedef BROWSEINFOW fl_BROWSEINFOW;
+#else
typedef void fl_OPENFILENAMEW;
typedef void fl_BROWSEINFOW;
+#endif
# include <FL/filename.H> // FL_EXPORT
// Use Apple's chooser