mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-28 17:11:23 +02:00
Added support for building emulation in Windows.
It has not been tested but it should not break any linux build. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -24,15 +24,27 @@
|
||||
#else
|
||||
#include <stdint.h>
|
||||
extern uint32_t board_millis();
|
||||
#if !defined(MIN)
|
||||
#if defined(_MSC_VER)
|
||||
#define MIN(a,b) (((a)<(b))?(a):(b))
|
||||
#else
|
||||
#define MIN(a, b) \
|
||||
({ __typeof__ (a) _a = (a); \
|
||||
__typeof__ (b) _b = (b); \
|
||||
_a < _b ? _a : _b; })
|
||||
#endif
|
||||
#endif
|
||||
#if !defined(MAX)
|
||||
#if defined(_MSC_VER)
|
||||
#define MAX(a,b) (((a)>(b))?(a):(b))
|
||||
#else
|
||||
#define MAX(a, b) \
|
||||
({ __typeof__ (a) _a = (a); \
|
||||
__typeof__ (b) _b = (b); \
|
||||
_a > _b ? _a : _b; })
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#include <string.h>
|
||||
|
||||
extern bool wait_button();
|
||||
|
||||
Reference in New Issue
Block a user