Skip to content

Commit

Permalink
LibC: Don't include AK headers in system headers
Browse files Browse the repository at this point in the history
AK/Platform.h might not be available when building the toolchain.
  • Loading branch information
gunnarbeutner authored and awesomekling committed Jul 15, 2021
1 parent 82e9fe8 commit d83c672
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Userland/Libraries/LibC/inttypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#pragma once

#include <AK/Platform.h>
#include <bits/stdint.h>
#include <sys/cdefs.h>

Expand All @@ -19,7 +18,7 @@ __BEGIN_DECLS
#define PRIi8 "d"
#define PRIi16 "d"
#define PRIi32 "d"
#if ARCH(I386)
#ifndef __x86_64__
# define PRIi64 "lld"
#else
# define PRIi64 "ld"
Expand All @@ -28,14 +27,14 @@ __BEGIN_DECLS
#define PRIo8 "o"
#define PRIo16 "o"
#define PRIo32 "o"
#if ARCH(I386)
#ifndef __x86_64__
# define PRIo64 "llo"
#else
# define PRIo64 "lo"
#endif
#define PRIu16 "u"
#define PRIu32 "u"
#if ARCH(I386)
#ifndef __x86_64__
# define PRIu64 "llu"
# define PRIuPTR "x"
#else
Expand All @@ -48,7 +47,7 @@ __BEGIN_DECLS
#define PRIX16 "hX"
#define PRIx32 "x"
#define PRIX32 "X"
#if ARCH(I386)
#ifndef __x86_64__
# define PRIx64 "llx"
# define PRIX64 "llX"
# define PRIxPTR "x"
Expand Down

0 comments on commit d83c672

Please sign in to comment.