diff options
| author | Ian MacArthur <imacarthur@gmail.com> | 2011-08-03 11:04:30 +0000 |
|---|---|---|
| committer | Ian MacArthur <imacarthur@gmail.com> | 2011-08-03 11:04:30 +0000 |
| commit | e3a53da439a8fb243074b8b37ee7f5a2ddcccbb1 (patch) | |
| tree | 535a2753da5112ee468c1cc2283550558a9dd810 /src/scandir.c | |
| parent | ec4275818360e23556d697a355952e8d78ffa5e7 (diff) | |
Add a #warning to scandir.c with the intent of trying to flag up which,
if any, hosts actually use this code now.
Will only trigger on hosts using gcc though, so may not help at all...
This is part of trying to remove this (possibly) not fltk license
compliant code from the codebase.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8913 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/scandir.c')
| -rw-r--r-- | src/scandir.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/scandir.c b/src/scandir.c index 197f63fd6..ac6dd34cd 100644 --- a/src/scandir.c +++ b/src/scandir.c @@ -44,6 +44,11 @@ USA. */ # endif # endif +/* This warning added to help identify any hosts that actually use this function... */ +# if defined(__GNUC__) +# warning Using deprecated scandir() replacement function +# endif /*__GNUC__*/ + int fl_scandir(const char *dir, struct dirent ***namelist, int (*select)(struct dirent *), |
