polarfire-soc / polarfire-soc-bare-metal-examples

Bare metal example software projects for PolarFire SoC
27 stars 14 forks source link

Fixed closing } for extern C #17

Open westonMS opened 6 months ago

westonMS commented 6 months ago

Description

In the file mss_pdma.h, which is located in ~30 places, it uses the

#ifdef __cplusplus
extern "C" {
#endif 

for C++ cross compilation. But it is missing the necessary closing bracket

#ifdef __cplusplus
}
#endif

preventing compilation and throwing an error.

I simply added the closing bracket that is present in all other .c and .h files as far as I have found. This is a minor fix for C++ compilation.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Using the mss pdma sample code, I inserted it into a C++ project in SoftConsole (using the Hello World C++ as a base). I then made the change and compiled it. Such a changed allowed the example code to compile unlike before and work just like the C version.

Test Configuration:

Checklist: