Do not use weak symbols on CYGWIN

Apparently CYGWIN does not properly support these, the weak
u8x8_GetMenuEvent() symbol is not found by the linker during
the link step.
This commit is contained in:
Hendry Kaak 2017-10-17 16:38:19 +02:00
parent ae20710301
commit 7bfe1a3bf8
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ uint8_t u8x8_GetMenuEvent(u8x8_t *u8x8)
#define U8X8_DEBOUNCE_WAIT 2
/* do debounce and return a GPIO msg which indicates the event */
/* returns 0, if there is no event */
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__CYGWIN__)
# pragma weak u8x8_GetMenuEvent
#endif
uint8_t u8x8_GetMenuEvent(u8x8_t *u8x8)