]> begriffs open source - freertos/commit
Fix compilation warning about undelcared pthread_setname_np (#1079)
authormaxiao <maxiao@dreame.tech>
Mon, 10 Jun 2024 10:32:04 +0000 (18:32 +0800)
committerGitHub <noreply@github.com>
Mon, 10 Jun 2024 10:32:04 +0000 (16:02 +0530)
commitbee9037c464d3ba4c1ef0684daee8c1b11efbc9a
tree3732aefa28d4b2a31bdb7f9aa7dcd7c602bc03a6
parentc431b358c802e1ec207ecbf3f68c34e9b2a17f46
Fix compilation warning about undelcared pthread_setname_np (#1079)

Use _GNU_SOURCE macro instead of __USE_GNU and define it before
including portmacro.h. The reason is that portmacro.h includes limits.h
which in-turn includes features.h - this results in __USE_GNU getting
incorrectly undefined.
portable/ThirdParty/GCC/Posix/port.c