gate inclusion of pico.h in binary info, so as not to break picotool builds (#836)
This commit is contained in:
parent
7880405292
commit
1e6c122fc9
@ -7,7 +7,12 @@
|
|||||||
#ifndef _PICO_BINARY_INFO_CODE_H
|
#ifndef _PICO_BINARY_INFO_CODE_H
|
||||||
#define _PICO_BINARY_INFO_CODE_H
|
#define _PICO_BINARY_INFO_CODE_H
|
||||||
|
|
||||||
|
// pico.h is not available when PICO_NO_BINARY_INFO=1 is used for builds outside of the SDK (e.g. picotool)
|
||||||
|
// and only needed anyway (because of macro definitions) in PICO_NO_BINARY_INFO=0 builds
|
||||||
|
#if !PICO_NO_BINARY_INFO
|
||||||
#include "pico.h"
|
#include "pico.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "pico/binary_info/structure.h"
|
#include "pico/binary_info/structure.h"
|
||||||
|
|
||||||
#if !PICO_NO_BINARY_INFO
|
#if !PICO_NO_BINARY_INFO
|
||||||
|
Loading…
Reference in New Issue
Block a user