mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
1bdc1a5967
`tiny_strerror()` is a drop-in replacement for `strerror()`, but instead of a long help message it returns the much shorter macro name matching the given number. The (pseudo-)module `tiny_strerror_as_strerror` can be used to replace all calls to `strerror()` with calls to `tiny_strerror()`.
5 lines
141 B
Makefile
5 lines
141 B
Makefile
ifneq (,$(filter tiny_strerror_as_strerror,$(USEMODULE)))
|
|
# use the wrapper functions for strerror
|
|
LINKFLAGS += -Wl,-wrap=strerror
|
|
endif
|