Fix compilation on AVR

This commit is contained in:
Jeremy Soller
2020-02-18 15:35:41 -07:00
parent ff9f3fe710
commit f7453df299
2 changed files with 7 additions and 2 deletions

View File

@ -1,12 +1,17 @@
#include <common/macro.h>
// Prevent failures to compile on AVR
#ifndef __SDCC
#define __code
#endif
static const char __code BOARD[] =
"76EC_BOARD="
xstr(__BOARD__);
static const char __code VERSION[] =
"76EC_VERSION="
xstr(__VERSION__);
xstr(__FIRMWARE_VERSION__);
const char * board() {
return &BOARD[11];