Browse Source

file_browser.c - remove #include <string.h>

It is no longer necessary, since string comparison is now carried out by Nuklear API.
crazyBaboon 3 years ago
parent
commit
f58114e45e
1 changed files with 9 additions and 11 deletions
  1. 9 11
      demo/common/file_browser.c

+ 9 - 11
demo/common/file_browser.c

@@ -1,3 +1,12 @@
+#ifdef __unix__
+#include <dirent.h>
+#include <unistd.h>
+#endif
+
+#ifndef _WIN32
+# include <pwd.h>
+#endif
+
 struct icons {
 struct icons {
     struct nk_image desktop;
     struct nk_image desktop;
     struct nk_image home;
     struct nk_image home;
@@ -78,17 +87,6 @@ struct file_browser {
     struct media *media;
     struct media *media;
 };
 };
 
 
-#ifdef __unix__
-#include <dirent.h>
-#include <unistd.h>
-#endif
-
-#ifndef _WIN32
-# include <pwd.h>
-#endif
-
-#include <string.h>
-
 static void
 static void
 die(const char *fmt, ...)
 die(const char *fmt, ...)
 {
 {