diff options
| author | Bill Spitzak <spitzak@gmail.com> | 2000-04-04 17:57:05 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 2000-04-04 17:57:05 +0000 |
| commit | 328a8f8f0dd777bb9a124e6701bf1595b5aff96e (patch) | |
| tree | c5c21271c8280ca526502e9d8bc5568abae3eb68 /src/filename_ext.cxx | |
| parent | 6f42bc1a58242305e554cb66b84c570fbcdc5738 (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 'src/filename_ext.cxx')
| -rw-r--r-- | src/filename_ext.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filename_ext.cxx b/src/filename_ext.cxx index a0e5056a8..ea086b2a1 100644 --- a/src/filename_ext.cxx +++ b/src/filename_ext.cxx @@ -1,5 +1,5 @@ // -// "$Id: filename_ext.cxx,v 1.4 1999/01/07 19:17:34 mike Exp $" +// "$Id: filename_ext.cxx,v 1.4.2.1 2000/04/04 17:57:03 bill Exp $" // // Filename extension routines for the Fast Light Tool Kit (FLTK). // @@ -32,7 +32,7 @@ const char *filename_ext(const char *buf) { const char *p = buf; for (p=buf; *p; p++) { if (*p == '/') q = 0; -#if defined(WIN32) || defined(__EMX__) +#if defined(WIN32) || defined(__EMX__) && !defined(__CYGWIN__) else if (*p == '\\') q = 0; #endif else if (*p == '.') q = p; @@ -41,5 +41,5 @@ const char *filename_ext(const char *buf) { } // -// End of "$Id: filename_ext.cxx,v 1.4 1999/01/07 19:17:34 mike Exp $". +// End of "$Id: filename_ext.cxx,v 1.4.2.1 2000/04/04 17:57:03 bill Exp $". // |
