summaryrefslogtreecommitdiff
path: root/app/bin/paths.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/bin/paths.c')
-rw-r--r--app/bin/paths.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/app/bin/paths.c b/app/bin/paths.c
index 6c6bb10..4a95a8e 100644
--- a/app/bin/paths.c
+++ b/app/bin/paths.c
@@ -20,22 +20,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#include <stdlib.h>
-#include <string.h>
-#include <assert.h>
-#include <stdarg.h>
-
-#ifdef WINDOWS
-#include <windows.h>
-#endif
-
-#include <wlib.h>
#include <dynstring.h>
#include "track.h"
#include "common.h"
-#include "utility.h"
#include "misc.h"
-#include "i18n.h"
#include "uthash.h"
#include "paths.h"
@@ -86,6 +74,10 @@ AddPath(const char *type, char*path)
tableEntry = malloc(sizeof(struct pathTable));
DynStringMalloc(&tableEntry->path, 16);
strcpy(tableEntry->type, type);
+#ifdef WINDOWS
+#pragma warning( disable : 4267)
+#endif
+ // This generates warning C4267 on windows
HASH_ADD_STR(paths, type, tableEntry);
}