diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2022-09-18 01:33:28 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-09-18 18:30:05 -0700 |
commit | 078e4bde32fd1fc4e4a980abbab914b5e00544f0 (patch) | |
tree | a3ea3b68fe8525a43d56edb32c0d98f7826717e7 /Userland/Libraries/LibC | |
parent | f11a69aafb761862b4951b96957d224a6502c0d3 (diff) | |
download | serenity-078e4bde32fd1fc4e4a980abbab914b5e00544f0.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r-- | Userland/Libraries/LibC/limits.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibC/limits.h b/Userland/Libraries/LibC/limits.h index 63e1728415..936a9ab928 100644 --- a/Userland/Libraries/LibC/limits.h +++ b/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> |