Skip to content

Commit 09541b3

Browse files
committed
Disable 'int atexit(void (*func)()) __attribute__((weak));' for host test build since ARM-GCC LIBC has a different definition of the function
1 parent b6a55a8 commit 09541b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/Common.h

+2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ typedef uint16_t word;
7979
void init(void);
8080
void initVariant(void);
8181

82+
#ifndef HOST
8283
int atexit(void (*func)()) __attribute__((weak));
84+
#endif
8385
int main() __attribute__((weak));
8486

8587
#ifdef EXTENDED_PIN_MODE

0 commit comments

Comments
 (0)