-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: fix compilation error with gcc++
The header files including must be outside of the extern "C" { statement. To be able to be included from C++ code. Else such error can occur (reproduce on STM32MP1Cube distribution) gcc/arm-none-eabi/include/c++/10.2.1/atomic:1467:3: error: template with C linkage 1467 | template<typename _ITp> | ^~~~~~~~ In file included from STM32CubeMP1/Middlewares/Third_Party/OpenAMP/ open-amp/lib/include/openamp/rpmsg.h:16, from STM32CubeMP1/Middlewares/Third_Party/OpenAMP/ open-amp/lib/include/openamp/open_amp.h:11, from empty_main.cpp:1: STM32CubeMP1/Middlewares/Third_Party/OpenAMP/libmetal/lib/include/ metal/mutex.h:16:1: note: 'extern "C"' linkage started here 16 | extern "C" { | ^~~~~~~~~~ Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
- Loading branch information
Showing
8 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters