aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPierre Langlois <pierre.langlois@arm.com>2016-08-10 14:35:56 +0100
committerPierre Langlois <pierre.langlois@arm.com>2016-08-12 09:29:08 +0000
commit78973f258039f6e96eba85f1b5ecdb14b3c51dbb (patch)
tree3a4575bdea61ee005f28369f92ff272bb5165082 /tools
parentec4fdd22abecf1b8f52ee9dbff596ebdded9b5d6 (diff)
Correctly include C headers
This patch refactors VIXL to use `extern` block when including C header that do not have a C++ counterpart. Change-Id: I203d7d107755dbac3e5f4cf8d2f196f70dea1e07
Diffstat (limited to 'tools')
-rwxr-xr-xtools/generate_simulator_traces.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/generate_simulator_traces.py b/tools/generate_simulator_traces.py
index e7964a84..c5e5d6ad 100755
--- a/tools/generate_simulator_traces.py
+++ b/tools/generate_simulator_traces.py
@@ -73,7 +73,9 @@ master_trace_header = """
#ifndef VIXL_TEST_AARCH64_SIMULATOR_TRACES_AARCH64_H_
#define VIXL_TEST_AARCH64_SIMULATOR_TRACES_AARCH64_H_
+extern "C" {
#include <stdint.h>
+}
// To add a new simulator test to test-simulator-aarch64.cc, add dummy array(s)
// below to build test-simulator-aarch64 for reference platform. Then, run