blob: a78571ff111997d358737e4fec91fd33c5139f4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* Copyright 2020 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef __CROS_EC_COMPILER_H
#define __CROS_EC_COMPILER_H
/*
* See https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
*/
#define GCC_VERSION \
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
/*
* The EC codebase assumes that typeof() is available but it is not in Zephyr.
* We use an #ifdef since arch/arm/include/aarch32/cortex_m/cmse.h defines this
* macro.
*/
#ifndef typeof
#define typeof(x) __typeof__(x)
#endif
#endif /* __CROS_EC_COMPILER_H */
|