DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2506
Version: 1.3-current


Would like to suggest retaining "dir" on all WIN32 builds
(including cygwin), and only single out the Microsoft-specific
_popen() macro. This, to avoid having a dependency on unix tools
like 'ls' being installed.

OP, can you verify the following patch works for you?
This should allow it to build, but have the demo use 'dir'.
Feel free to weigh in on what you think.

(I don't have a Cygwin compiler at present, but would prefer
this approach)

----
% svn diff
Index: table-sort.cxx
===================================================================
--- table-sort.cxx      (revision 8175)
+++ table-sort.cxx      (working copy)
@@ -49,7 +49,9 @@
 // WINDOWS
 #define DIRCMD          "dir"
 #define DIRHEADER       { "Date", "Time", "Size", "Filename", "", "", "",
"", "" }
+#ifdef _MSC_VER
 #define popen           _popen
+#endif /*_MSC_VER*/
 #else /*_WIN32*/
 // UNIX
 #include <ctype.h>
----


Link: http://www.fltk.org/str.php?L2506
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to