summaryrefslogtreecommitdiff
path: root/utils/config.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-04-19 11:21:06 +0100
committerVincent Sanders <vince@kyllikki.org>2016-04-19 11:21:06 +0100
commit1bc010665e53bdf226370ab12a7ae3f87250df4d (patch)
tree66bfbef6f89d97613bf9e32e1617d11fb1bff4b3 /utils/config.h
parent4f38963337cfa6170249898d11d45b329b2c186d (diff)
downloadnetsurf-1bc010665e53bdf226370ab12a7ae3f87250df4d.tar.gz
netsurf-1bc010665e53bdf226370ab12a7ae3f87250df4d.tar.bz2
Reduce unecessary use of directory entry headers
The config header was causing many source files to unecessarily include the dirent headers causing extra dependancies. This has been fixed by providing a utility dirent header that provides a common API across all platforms while removing the unecessary dirent header usage.
Diffstat (limited to 'utils/config.h')
-rw-r--r--utils/config.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/utils/config.h b/utils/config.h
index 8f05b23dc..ddd1c6e8e 100644
--- a/utils/config.h
+++ b/utils/config.h
@@ -20,7 +20,6 @@
#define _NETSURF_UTILS_CONFIG_H_
#include <stddef.h>
-#include <dirent.h>
/* Try to detect which features the target OS supports */
@@ -107,10 +106,6 @@ char *realpath(const char *path, char *resolved_path);
#define HAVE_SCANDIR
#if (defined(_WIN32))
#undef HAVE_SCANDIR
-int alphasort(const struct dirent **d1, const struct dirent **d2);
-int scandir(const char *dir, struct dirent ***namelist,
- int (*sel)(const struct dirent *),
- int (*compar)(const struct dirent **, const struct dirent **));
#endif
/* This section toggles build options on and off.