diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2020-09-23 11:08:49 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-29 20:55:43 +0000 |
commit | ffb3d8111820142bf8314a419230e2e3f7baf5d0 (patch) | |
tree | d8747fe4c5684bb6aa7af163623750aa9884494a /include/console.h | |
parent | d4be394be0b91a71b2f16ca476114b7470bc630f (diff) | |
download | chrome-ec-ffb3d8111820142bf8314a419230e2e3f7baf5d0.tar.gz |
common: include config.h from console.h
console.h currently relies on many config options to selectively
define macros. It does not currently include config.h, which means
these config options are not guaranteed to be defined by this point.
We will need this for Zephyr as well.
There were a few configuration header files which implicitly relied on
the ording of including console.h to bring in stdint.h at some point.
We explicitly include what we use here to fix that.
BUG=b:167590251
BRANCH=none
TEST=build passes
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: Ia005577a2579962ee8b14c61930f37fe28bc8f5c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2427088
Reviewed-by: Yuval Peress <peress@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include/console.h')
-rw-r--r-- | include/console.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h index df0762c8e3..178309812c 100644 --- a/include/console.h +++ b/include/console.h @@ -9,6 +9,7 @@ #define __CROS_EC_CONSOLE_H #include "common.h" +#include "config.h" /* * The EC code base has been using %h to print a hex buffer. Encode the |