Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
078e4bde32
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      Userland/Libraries/LibC/limits.h

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

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