From 21dd4f7cdeecfdebc4ff8dce421ebe6a1f5fcd9f Mon Sep 17 00:00:00 2001 From: Deomid Ryabkov Date: Thu, 27 Jul 2017 13:09:33 +0200 Subject: [PATCH] Add automated check for extern "C" Fix headers that didn't have it PUBLISHED_FROM=ce8140783d4b661f16278a4a5adc957b21965473 --- src/mgos_arduino_ssd1306.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/mgos_arduino_ssd1306.h b/src/mgos_arduino_ssd1306.h index 3a78169..5a8ab5a 100644 --- a/src/mgos_arduino_ssd1306.h +++ b/src/mgos_arduino_ssd1306.h @@ -5,11 +5,13 @@ * Arduino Adafruit_SSD1306 library API wrapper */ +#ifndef CS_MOS_LIBS_ARDUINO_ADAFRUIT_SSD1306_SRC_MGOS_ARDUINO_SSD1306_H_ +#define CS_MOS_LIBS_ARDUINO_ADAFRUIT_SSD1306_SRC_MGOS_ARDUINO_SSD1306_H_ + #include "Adafruit_SSD1306.h" #ifdef __cplusplus -extern "C" -{ +extern "C" { #endif // Initialize Adafruit_SSD1306 library for I2C. @@ -104,4 +106,6 @@ int mgos_ssd1306_get_cursor_y(Adafruit_SSD1306 *ssd); #ifdef __cplusplus } -#endif /* __cplusplus */ +#endif + +#endif /* CS_MOS_LIBS_ARDUINO_ADAFRUIT_SSD1306_SRC_MGOS_ARDUINO_SSD1306_H_ */