From 28acfd7d9d59b37f0b1deef25be999d281c1231b Mon Sep 17 00:00:00 2001 From: Christopher Andrews Date: Mon, 4 Aug 2014 21:03:32 +1000 Subject: Added replacement stub for cstdlib atexit() funciton. This is an empty stub to simply allow use of complex types with a non global static lifetime. For more complex handling the function 'atexit' can be redefined in user code. For more information see: https://github.com/arduino/Arduino/pull/2229 https://github.com/arduino/Arduino/issues/1919 --- cores/arduino/Arduino.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cores/arduino/Arduino.h') diff --git a/cores/arduino/Arduino.h b/cores/arduino/Arduino.h index 425dfcb..8673ab8 100755 --- a/cores/arduino/Arduino.h +++ b/cores/arduino/Arduino.h @@ -115,6 +115,8 @@ typedef uint8_t byte; void init(void); void initVariant(void); +int atexit(void (*func)()) __attribute__((weak)); + void pinMode(uint8_t, uint8_t); void digitalWrite(uint8_t, uint8_t); int digitalRead(uint8_t); -- cgit v1.2.3-18-g5258