summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2000-04-04 17:57:05 +0000
committerBill Spitzak <spitzak@gmail.com>2000-04-04 17:57:05 +0000
commit328a8f8f0dd777bb9a124e6701bf1595b5aff96e (patch)
treec5c21271c8280ca526502e9d8bc5568abae3eb68 /test
parent6f42bc1a58242305e554cb66b84c570fbcdc5738 (diff)
Fixes for Cygwin POSIX emulation layer from Norman Vine.
Requires the symbol __CYGWIN__ to be defined, appears to disable the special meaning of backslash and colon in file names. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1056 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
-rw-r--r--test/demo.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/demo.cxx b/test/demo.cxx
index 13ea3e5bf..353306a95 100644
--- a/test/demo.cxx
+++ b/test/demo.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: demo.cxx,v 1.8 1999/02/22 21:09:13 mike Exp $"
+// "$Id: demo.cxx,v 1.8.2.1 2000/04/04 17:57:05 bill Exp $"
//
// Main demo program for the Fast Light Tool Kit (FLTK).
//
@@ -26,7 +26,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#if defined(WIN32) && !defined(CYGNUS)
+#if defined(WIN32) && !defined(__CYGWIN__)
# include <direct.h>
#else
# include <unistd.h>
@@ -320,6 +320,7 @@ int main(int argc, char **argv) {
if (!Fl::args(argc,argv,i) || i < argc-1)
Fl::fatal("Usage: %s <switches> <menufile>\n%s",Fl::help);
if (i < argc) fname = argv[i];
+
if (!load_the_menu(fname)) Fl::fatal("Can't open %s",fname);
strcpy(buf,fname);
const char *c = filename_name(buf);
@@ -331,6 +332,6 @@ int main(int argc, char **argv) {
}
//
-// End of "$Id: demo.cxx,v 1.8 1999/02/22 21:09:13 mike Exp $".
+// End of "$Id: demo.cxx,v 1.8.2.1 2000/04/04 17:57:05 bill Exp $".
//