diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-11-27 14:45:48 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-11-27 14:45:48 +0000 |
| commit | e321cb37bfe0379f54010eb42a36573ca561e71f (patch) | |
| tree | 8859d1296934461dc33abddc49701f5bbdc53124 /src/filename_absolute.cxx | |
| parent | f9f2de35726988a6fd9d3b226dc683c394c1d65c (diff) | |
VC++ 2005 Support, drop old files, add icons for Sudoku
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/filename_absolute.cxx')
| -rw-r--r-- | src/filename_absolute.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/filename_absolute.cxx b/src/filename_absolute.cxx index abec59127..d4101cfec 100644 --- a/src/filename_absolute.cxx +++ b/src/filename_absolute.cxx @@ -37,12 +37,14 @@ #include <ctype.h> #if defined(WIN32) && !defined(__CYGWIN__) # include <direct.h> -//# define getcwd(a,b) _getdcwd(0,a,b) +// Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs +// on Windows, which is supposed to be POSIX compliant... +# define getcwd _getcwd #else -# include <unistd.h> -# ifdef __EMX__ -# define getcwd _getcwd2 -# endif +# include <unistd.h> +# ifdef __EMX__ +# define getcwd _getcwd2 +# endif #endif #if defined(WIN32) || defined(__EMX__) && !defined(__CYGWIN__) |
