Fix VisualC++ build (Visual Studio 2015).

IDE generated with CMake, still many warnings, but compiles and runs.

Note: we *must* get rid of all VisualStudio-specific #define's like:

 #define unlink _unlink

This one led to a compilation error (not a warning).

src/Fl_File_Icon.cxx: I had to add _MSC_VER (WIN32) distinction as in
  previous code (FLTK 1.3). Obviously MinGW is more Unixy than MS VC++
  since MinGW compiled and linked the code. Needs a better fix ...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11580 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser
2016-04-11 00:46:11 +00:00
parent 84122ac25a
commit aafd8b6031
5 changed files with 14 additions and 6 deletions
+1
View File
@@ -61,6 +61,7 @@
# define access _access
# define chdir _chdir
# define getcwd _getcwd
# define unlink _unlink
# endif // !__WATCOMC__
#else
# include <unistd.h>