summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2020-09-23 11:08:49 -0600
committerCommit Bot <commit-bot@chromium.org>2020-09-29 20:55:43 +0000
commitffb3d8111820142bf8314a419230e2e3f7baf5d0 (patch)
treed8747fe4c5684bb6aa7af163623750aa9884494a /test
parentd4be394be0b91a71b2f16ca476114b7470bc630f (diff)
downloadchrome-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 'test')
-rw-r--r--test/test_config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_config.h b/test/test_config.h
index f4047701ad..0d473eadad 100644
--- a/test/test_config.h
+++ b/test/test_config.h
@@ -11,6 +11,10 @@
/* Test config flags only apply for test builds */
#ifdef TEST_BUILD
+#ifndef __ASSEMBLER__
+#include <stdint.h>
+#endif
+
/* Host commands are sorted. */
#define CONFIG_HOSTCMD_SECTION_SORTED