diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-10-13 14:58:30 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-10-13 14:58:30 +0000 |
| commit | 66b1690aa8b5d05f540ded9999c08525cd1eaf7a (patch) | |
| tree | ccb5a3a743f1e008fd4b217c619ba99faee62612 /test/checkers.cxx | |
| parent | db83933f585d156db2ae35d9c5649bb21b4555af (diff) | |
Replace remaining calls to getenv() with fl_getenv().
... except in driver code that uses Fl_System_Driver::getenv().
Todo: Check if all remaining calls of getenv() in driver code are correct
or might use ::getenv() to avoid one calling level for optimization.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12492 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/checkers.cxx')
| -rw-r--r-- | test/checkers.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/checkers.cxx b/test/checkers.cxx index b9adf95b2..0a0972ada 100644 --- a/test/checkers.cxx +++ b/test/checkers.cxx @@ -6,7 +6,7 @@ // Hours of fun: the FLTK checkers game! // Based on a very old algorithm, but it still works! // -// Copyright 1998-2010 by Bill Spitzak and others. +// Copyright 1998-2017 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 @@ -1346,7 +1346,7 @@ int main(int argc, char **argv) { fprintf(stderr," -t : use VT100 display\n", Fl::help); exit(1); } - if (!getenv("DISPLAY")) terminal = 1; + if (!fl_getenv("DISPLAY")) terminal = 1; if (!terminal) #endif #ifdef FLTK |
