make all non hardware_ libraries foo add C preprocessor definition LIB_FOO=1, and remove bespoke definitions which were all undocumented anyway (#374)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
if (NOT TARGET pico_malloc)
|
||||
#shims for ROM functions for -lgcc functions (listed below)
|
||||
add_library(pico_malloc INTERFACE)
|
||||
pico_add_impl_library(pico_malloc)
|
||||
|
||||
target_sources(pico_malloc INTERFACE
|
||||
${CMAKE_CURRENT_LIST_DIR}/pico_malloc.c
|
||||
|
@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
// PICO_CONFIG: PICO_USE_MALLOC_MUTEX, Whether to protect malloc etc with a mutex, type=bool, default=1 with pico_multicore, 0 otherwise, group=pico_malloc
|
||||
#if PICO_MULTICORE && !defined(PICO_USE_MALLOC_MUTEX)
|
||||
#if LIB_PICO_MULTICORE && !defined(PICO_USE_MALLOC_MUTEX)
|
||||
#define PICO_USE_MALLOC_MUTEX 1
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user