Browse Source

LibC: Fix misplaced #include in limits.h

posix1_lim.h only defines macros that start with _POSIX_*, and don't
mention anything that might be defined in limits.h. Likewise, limits.h
uses none of the _POSIX_* macros. Thus, it is okay to change the order
of imports.
Ben Wiederhake 2 years ago
parent
commit
078e4bde32
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Userland/Libraries/LibC/limits.h

+ 1 - 2
Userland/Libraries/LibC/limits.h

@@ -7,6 +7,7 @@
 #pragma once
 #pragma once
 
 
 #include <Kernel/API/POSIX/sys/limits.h>
 #include <Kernel/API/POSIX/sys/limits.h>
+#include <bits/posix1_lim.h>
 #include <bits/stdint.h>
 #include <bits/stdint.h>
 #include <bits/wchar.h>
 #include <bits/wchar.h>
 
 
@@ -92,5 +93,3 @@
 #define LINK_MAX 4096
 #define LINK_MAX 4096
 
 
 #define TZNAME_MAX 64
 #define TZNAME_MAX 64
-
-#include <bits/posix1_lim.h>