diff options
author | Pierre Langlois <pierre.langlois@arm.com> | 2016-08-10 14:35:56 +0100 |
---|---|---|
committer | Pierre Langlois <pierre.langlois@arm.com> | 2016-08-12 09:29:08 +0000 |
commit | 78973f258039f6e96eba85f1b5ecdb14b3c51dbb (patch) | |
tree | 3a4575bdea61ee005f28369f92ff272bb5165082 /doc | |
parent | ec4fdd22abecf1b8f52ee9dbff596ebdded9b5d6 (diff) | |
download | vixl-78973f258039f6e96eba85f1b5ecdb14b3c51dbb.tar.gz |
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 'doc')
-rw-r--r-- | doc/getting-started-aarch32.md | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/getting-started-aarch32.md b/doc/getting-started-aarch32.md index 0a4e5da8..f4fdccbe 100644 --- a/doc/getting-started-aarch32.md +++ b/doc/getting-started-aarch32.md @@ -18,9 +18,13 @@ First of all you need to make sure that the header files for the assembler are included. You should have the following lines at the beginning of your source file: - #include <stdio.h> - #include <string> + // You may use <cstdint> if using C++11 or later. + extern "C" { #include <stdint.h> + } + + #include <cstdio> + #include <string> #include "aarch32/constants-aarch32.h" #include "aarch32/instructions-aarch32.h" #include "aarch32/macro-assembler-aarch32.h" |