gate inclusion of pico.h in binary info, so as not to break picotool builds (#836)

This commit is contained in:
Graham Sanderson 2022-05-18 10:39:17 -05:00 committed by GitHub
parent 7880405292
commit 1e6c122fc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,12 @@
#ifndef _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"
#endif
#include "pico/binary_info/structure.h"
#if !PICO_NO_BINARY_INFO