diff options
author | ConfuSomu | 2021-02-20 12:55:39 -0500 |
---|---|---|
committer | ConfuSomu | 2021-02-20 12:55:39 -0500 |
commit | 8ad7e71440e603e94e972c099769ef2fc5e470e1 (patch) | |
tree | 4042a8583cd881ae760f542394bb87d39b0e05dd /oled/ss_oled.h | |
parent | f2d591ce164086cdb0e57a49e867058e59457795 (diff) | |
download | pico-watch-8ad7e71440e603e94e972c099769ef2fc5e470e1.tar pico-watch-8ad7e71440e603e94e972c099769ef2fc5e470e1.tar.gz pico-watch-8ad7e71440e603e94e972c099769ef2fc5e470e1.zip |
Adopt C++
A large number of changes had to be made to use C++. "extern C" had to
be added for a few headers not adapted to C++. See
https://github.com/raspberrypi/pico-sdk/pull/106 for fix in affected
files. They will be removed when the pull request is merged in
pico-sdk's master branch.
Diffstat (limited to 'oled/ss_oled.h')
-rw-r--r-- | oled/ss_oled.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/oled/ss_oled.h b/oled/ss_oled.h index f7e303c..fe6f399 100644 --- a/oled/ss_oled.h +++ b/oled/ss_oled.h @@ -1,5 +1,8 @@ #ifndef __SS_OLED_H__ #define __SS_OLED_H__ +#ifdef __cplusplus +extern "C" { +#endif #include "BitBang_I2C.h" @@ -206,6 +209,7 @@ void oledRectangle(SSOLED *pOLED, int x1, int y1, int x2, int y2, uint8_t ucColo #if defined(_LINUX_) && defined(__cplusplus) } #endif // _LINUX_ - +#ifdef __cplusplus +} +#endif #endif // __SS_OLED_H__ - |