Skip to content

Commit 63b103a

Browse files
committed
Switch _PICO_EXIT to __PICO_EXIT
Use __ namespace for config options. Signed-off-by: Keith Packard <[email protected]>
1 parent 0f3b29b commit 63b103a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ if(NOT DEFINED __IO_FLOAT_EXACT)
159159
option(__IO_FLOAT_EXACT "Provide exact binary/decimal conversion for printf/scanf" ON)
160160
endif()
161161

162-
set(_PICO_EXIT 1)
162+
set(__PICO_EXIT 1)
163163

164164
if(NOT DEFINED __ASSERT_VERBOSE)
165165
option(__ASSERT_VERBOSE "Assert provides verbose information" ON)

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ if mb_capable
13841384
conf_data.set('__MB_EXTENDED_CHARSETS_JIS', mb_jis_charsets)
13851385
endif
13861386

1387-
conf_data.set('_PICO_EXIT', picoexit)
1387+
conf_data.set('__PICO_EXIT', picoexit)
13881388
if not picoexit
13891389
conf_data.set('_ATEXIT_DYNAMIC_ALLOC', newlib_atexit_dynamic_alloc)
13901390
conf_data.set('_GLOBAL_ATEXIT', get_option('newlib-global-atexit'))

picolibc.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
/* The newlib version in string format. */
107107
#define _NEWLIB_VERSION "@NEWLIB_VERSION@"
108108

109-
#cmakedefine _PICO_EXIT
109+
#cmakedefine __PICO_EXIT
110110

111111
/* The Picolibc minor version number. */
112112
#define _PICOLIBC_MINOR__ @PROJECT_VERSION_MINOR@

0 commit comments

Comments
 (0)