diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-08-31 18:12:41 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-08-31 18:12:41 +0200 |
| commit | 0f57e272a761109de3d7fb1e2137e53f8ed842a2 (patch) | |
| tree | 8245c11a04ffe887634ac6627d8701b198c81daa /examples | |
| parent | ef86d9acedc8d8a5005cdae45070cfc5f5789964 (diff) | |
Fix MSVC 'fileno' warning in example program (#109)
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/howto-add_fd-and-popen.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/howto-add_fd-and-popen.cxx b/examples/howto-add_fd-and-popen.cxx index c6afe5049..f3558b45f 100644 --- a/examples/howto-add_fd-and-popen.cxx +++ b/examples/howto-add_fd-and-popen.cxx @@ -8,7 +8,7 @@ // text can be highlighted, and the interface can be resized. // // Copyright 2010 Greg Ercolano. -// Copyright 1998-2010 by Bill Spitzak and others. +// Copyright 1998-2021 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -30,6 +30,7 @@ # ifdef _MSC_VER # define popen _popen # define pclose _pclose +# define fileno _fileno # else /*_MSC_VER*/ # include <unistd.h> // non-MS win32 compilers (untested) # endif /*_MSC_VER*/ |
