Skip to content

Commit

Permalink
TinyUSB <=0.15.0 does not know "tu_static"
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrr committed Aug 1, 2023
1 parent 37e9fae commit ae526e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/net/tinyusb/ncm_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@

#if ECLIPSE_GUI || ( CFG_TUD_ENABLED && CFG_TUD_NCM )

// this prevents an obscure compilation bug, see https://github.com/rgrr/yapicoprobe/pull/61
#define tu_static static
#if !defined(tu_static) || ECLIPSE_GUI
// TinyUSB <=0.15.0 does not know "tu_static"
#define tu_static static
#endif

#include <stdio.h>
#include "device/usbd.h"
Expand Down
6 changes: 4 additions & 2 deletions src/net/tinyusb/ncm_device_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@

#if ECLIPSE_GUI || ( CFG_TUD_ENABLED && CFG_TUD_NCM )

// this prevents an obscure compilation bug, see https://github.com/rgrr/yapicoprobe/pull/61
#define tu_static static
#if !defined(tu_static) || ECLIPSE_GUI
// TinyUSB <=0.15.0 does not know "tu_static"
#define tu_static static
#endif

#include <stdio.h>
#include "device/usbd.h"
Expand Down

0 comments on commit ae526e0

Please sign in to comment.