Skip to content

Commit 5d87f9e

Browse files
committed
Merge branch 'master' into ide-1.5.x
2 parents 48f5256 + 28acfd7 commit 5d87f9e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cores/arduino/Arduino.h

+2
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ typedef uint8_t byte;
120120
void init(void);
121121
void initVariant(void);
122122

123+
int atexit(void (*func)()) __attribute__((weak));
124+
123125
void pinMode(uint8_t, uint8_t);
124126
void digitalWrite(uint8_t, uint8_t);
125127
int digitalRead(uint8_t);

cores/arduino/main.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
#include <Arduino.h>
2121

22+
//Declared weak in Arduino.h to allow user redefinitions.
23+
int atexit(void (*func)()) { return 0; }
24+
2225
// Weak empty variant initialization function.
2326
// May be redefined by variant files.
2427
void initVariant() __attribute__((weak));

0 commit comments

Comments
 (0)