summaryrefslogtreecommitdiff
path: root/include/power.h
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2021-03-04 14:20:37 -0800
committerCommit Bot <commit-bot@chromium.org>2021-05-06 20:11:53 +0000
commit13b2bbc4f99c7e21a913c439a99cd1bdb402e45b (patch)
tree4c970e6d68024031f99b9641a6e6be5505e7ef76 /include/power.h
parente0a4e5ab99a45faa196b3894ade8c375061a7ab6 (diff)
downloadchrome-ec-13b2bbc4f99c7e21a913c439a99cd1bdb402e45b.tar.gz
Specify type for forward-declared enums
C++ does not allow enums to be forward declared unless they have a type. BRANCH=none BUG=b:144959033 TEST=make buildall Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I6fcdedc81f2b60a44b750554939e60552a4c6a77 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2740567 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'include/power.h')
-rw-r--r--include/power.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/power.h b/include/power.h
index 4a267ed8ad..769a60fd53 100644
--- a/include/power.h
+++ b/include/power.h
@@ -9,10 +9,11 @@
#define __CROS_EC_POWER_H
#include "common.h"
+#include "compiler.h"
#include "gpio.h"
#include "task_id.h"
-enum power_state {
+FORWARD_DECLARE_ENUM(power_state) {
/* Steady states */
POWER_G3 = 0, /*
* System is off (not technically all the way into G3,