Skip to content

Commit

Permalink
gate inclusion of pico.h in binary info, so as not to break picotool …
Browse files Browse the repository at this point in the history
…builds (#836)
  • Loading branch information
kilograham authored May 18, 2022
1 parent 7880405 commit 1e6c122
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/common/pico_binary_info/include/pico/binary_info/code.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e6c122

Please sign in to comment.