Skip to content

Commit 41ac088

Browse files
committed
fix build for unix
1 parent 45e4e5a commit 41ac088

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,8 +79,10 @@ typedef uint16_t word;
7979
void init(void);
8080
void initVariant(void);
8181

82+
#ifndef __unix
8283
int atexit(void (*func)()) __attribute__((weak));
8384
int main() __attribute__((weak));
85+
#endif
8486

8587
#ifdef EXTENDED_PIN_MODE
8688
// Platforms who wnat to declare more than 256 pins need to define EXTENDED_PIN_MODE globally

0 commit comments

Comments
 (0)