Blynk library for embedded hardware. Works with Arduino, ESP8266, Raspberry Pi, Intel Edison/Galileo, LinkIt ONE, Particle Core/Photon, Energia, ARM mbed, etc. http://www.blynk.cc/

Dependents:   Blynk_RBL_BLE_Nano Blynk_MicroBit Blynk_Serial Blynk_RBL_BLE_Nano

Revision:
16:6d9bf99b263c
Parent:
15:975b60f7a8ff
Child:
18:c328c1a97f90
--- a/utility/BlynkDebug.cpp	Mon Nov 27 19:48:07 2017 +0200
+++ b/utility/BlynkDebug.cpp	Mon Nov 27 23:01:23 2017 +0200
@@ -13,7 +13,7 @@
     #include <Arduino.h>
     #include <avr/wdt.h>
 
-    __attribute__((constructor))
+    BLYNK_CONSTRUCTOR
     static void BlynkSystemInit()
     {
         MCUSR = 0;
@@ -141,7 +141,7 @@
     #define _BLYNK_USE_DEFAULT_MILLIS
     #define _BLYNK_USE_DEFAULT_DELAY
 
-#elif defined(MBED_LIBRARY_VERSION)
+#elif defined(__MBED__)
 
     #include "mbed.h"
 
@@ -153,7 +153,7 @@
         //pc.puts("(...)");
     }
 
-    __attribute__((constructor))
+    BLYNK_CONSTRUCTOR
     static void BlynkSystemInit()
     {
         blynk_waker.attach(&blynk_wake, 2.0);
@@ -177,7 +177,7 @@
     #include <stdlib.h>
     #include <wiringPi.h>
 
-    __attribute__((constructor))
+    BLYNK_CONSTRUCTOR
     static void BlynkSystemInit()
     {
         wiringPiSetupGpio();