Author: ianmacarthur
Date: 2011-08-03 04:04:30 -0700 (Wed, 03 Aug 2011)
New Revision: 8913
Log:
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.
Modified:
branches/branch-1.3/src/scandir.c
Modified: branches/branch-1.3/src/scandir.c
===================================================================
--- branches/branch-1.3/src/scandir.c 2011-08-03 08:40:27 UTC (rev 8912)
+++ branches/branch-1.3/src/scandir.c 2011-08-03 11:04:30 UTC (rev 8913)
@@ -44,6 +44,11 @@
# 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 *),
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit