summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorRong Chang <rongchang@chromium.org>2018-12-10 17:18:55 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-01-24 00:51:41 -0800
commit8d8e6eb819e6c883c10ae71fc4662af463d91a1b (patch)
tree59c2fa17b4dc72ea6812051658753f68cc718e16 /builtin
parentebb25bc556e399678189895b0371065e8c9507c0 (diff)
downloadchrome-ec-8d8e6eb819e6c883c10ae71fc4662af463d91a1b.tar.gz
build: add centroiding C++ support
Centroiding source is in C++. This CL removes -W flags only for building C files from CFLAGS and also prevents typedef existing C++ keyword wchar_t. BUG=b:120961468 BRANCH=none TEST=make buildall Change-Id: Ifb8793a8e7e69b26a742b7dbf70289747a0ee7b3 Signed-off-by: Rong Chang <rongchang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1372874 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Reviewed-by: Tai-Hsu Lin <sheckylin@chromium.org>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/stddef.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/stddef.h b/builtin/stddef.h
index 343b0f6adf..69fb1982c7 100644
--- a/builtin/stddef.h
+++ b/builtin/stddef.h
@@ -25,7 +25,10 @@ typedef __SIZE_TYPE__ ssize_t;
#ifndef __WCHAR_TYPE__
#define __WCHAR_TYPE__ int
#endif
+
+#ifndef __cplusplus
typedef __WCHAR_TYPE__ wchar_t;
+#endif
/* This macro definition is duplicated in compile_time_macros.h. It still needs
* to be defined here to support code that expects offsetof to be defined in the