Skip to content

Commit 7f2350f

Browse files
committed
Merge branch 'master' into ide-1.5.x
2 parents a6c8036 + 1bbcb2f commit 7f2350f

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

build/shared/revisions.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARDUINO 1.5.8 BETA - not yet release
1+
ARDUINO 1.5.8 BETA - not yet released
22

33
[ide]
44
* Find/Replace over multiple tabs (Erwin Ried, Fulvio Ieva)
@@ -11,6 +11,11 @@ ARDUINO 1.5.8 BETA - not yet release
1111
* FileIO bridge: fixed wrong return value in File::size() for size >32768
1212
* Updated Temboo to latest version
1313

14+
The following changes are included also in the (not yet released) Arduino IDE 1.0.6:
15+
16+
[core]
17+
* avr: Added replacement stub for cstdlib atexit() funciton (Christopher Andrews)
18+
1419
ARDUINO 1.5.7 BETA - 2014.07.07
1520

1621
[core]
@@ -319,6 +324,7 @@ ARDUINO 1.0.6 - not yet released
319324
* avr: Improved USB-CDC write speed (Justin Rajewski)
320325
* avr: Improved USB-CDC read code (Paul Brook)
321326
* avr: Fixed race condition in USB-CDC transmit (Paul Brook)
327+
* avr: Added replacement stub for cstdlib atexit() funciton (Christopher Andrews)
322328
* Fixed wrong NULL pointer handling in Stream class (Amulya Kumar Sahoo)
323329
* Backported String class from IDE 1.5.x (Matt Jenkins)
324330
* Backported Print class from IDE 1.5.x

hardware/arduino/avr/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);

hardware/arduino/avr/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)