From e3a53da439a8fb243074b8b37ee7f5a2ddcccbb1 Mon Sep 17 00:00:00 2001 From: Ian MacArthur Date: Wed, 3 Aug 2011 11:04:30 +0000 Subject: [PATCH] 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 --- src/scandir.c | 5 +++++ 1 file changed, 5 insertions(+) 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 *),