FLTK logo

[master] 0f57e27 - Fix MSVC 'fileno' warning in example program (#109)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 0f57e27 - Fix MSVC 'fileno' warning in example program (#109) "Albrecht Schlosser" Aug 31, 2021  
 
commit 0f57e272a761109de3d7fb1e2137e53f8ed842a2
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Tue Aug 31 18:12:41 2021 +0200
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Tue Aug 31 18:12:41 2021 +0200

    Fix MSVC 'fileno' warning in example program (#109)

 examples/howto-add_fd-and-popen.cxx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git examples/howto-add_fd-and-popen.cxx examples/howto-add_fd-and-popen.cxx
index c6afe50..f3558b4 100644
--- examples/howto-add_fd-and-popen.cxx
+++ 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*/
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.