瀏覽代碼

LibC: Remove an unneeded string.h include in ctype.h/cpp

And include string.h in the files that actually needed it
Benoit Lormeau 4 年之前
父節點
當前提交
f158cb27ea

+ 1 - 1
Applications/KeyboardMapper/KeyboardMapperWidget.cpp

@@ -32,9 +32,9 @@
 #include <LibGUI/MessageBox.h>
 #include <LibGUI/MessageBox.h>
 #include <LibGUI/RadioButton.h>
 #include <LibGUI/RadioButton.h>
 #include <LibKeyboard/CharacterMapFile.h>
 #include <LibKeyboard/CharacterMapFile.h>
-#include <ctype.h>
 #include <fcntl.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdio.h>
+#include <string.h>
 
 
 KeyboardMapperWidget::KeyboardMapperWidget()
 KeyboardMapperWidget::KeyboardMapperWidget()
 {
 {

+ 0 - 1
Libraries/LibC/ctype.cpp

@@ -25,7 +25,6 @@
  */
  */
 
 
 #include <ctype.h>
 #include <ctype.h>
-#include <string.h>
 
 
 extern "C" {
 extern "C" {
 
 

+ 0 - 1
Libraries/LibC/ctype.h

@@ -26,7 +26,6 @@
 
 
 #pragma once
 #pragma once
 
 
-#include <string.h>
 #include <sys/cdefs.h>
 #include <sys/cdefs.h>
 
 
 __BEGIN_DECLS
 __BEGIN_DECLS

+ 1 - 0
Libraries/LibWeb/CSS/Parser/CSSParser.cpp

@@ -32,6 +32,7 @@
 #include <ctype.h>
 #include <ctype.h>
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdlib.h>
+#include <string.h>
 
 
 #define PARSE_ASSERT(x)                                                   \
 #define PARSE_ASSERT(x)                                                   \
     if (!(x)) {                                                           \
     if (!(x)) {                                                           \

+ 1 - 0
Userland/useradd.cpp

@@ -28,6 +28,7 @@
 #include <ctype.h>
 #include <ctype.h>
 #include <pwd.h>
 #include <pwd.h>
 #include <stdio.h>
 #include <stdio.h>
+#include <string.h>
 #include <sys/stat.h>
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <unistd.h>