Skip to content

Commit 1e6c122

Browse files
authored
gate inclusion of pico.h in binary info, so as not to break picotool builds (#836)
1 parent 7880405 commit 1e6c122

File tree

1 file changed

+5
-0
lines changed
  • src/common/pico_binary_info/include/pico/binary_info

1 file changed

+5
-0
lines changed

src/common/pico_binary_info/include/pico/binary_info/code.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
#ifndef _PICO_BINARY_INFO_CODE_H
88
#define _PICO_BINARY_INFO_CODE_H
99

10+
// pico.h is not available when PICO_NO_BINARY_INFO=1 is used for builds outside of the SDK (e.g. picotool)
11+
// and only needed anyway (because of macro definitions) in PICO_NO_BINARY_INFO=0 builds
12+
#if !PICO_NO_BINARY_INFO
1013
#include "pico.h"
14+
#endif
15+
1116
#include "pico/binary_info/structure.h"
1217

1318
#if !PICO_NO_BINARY_INFO

0 commit comments

Comments
 (0)