Skip to content

Commit

Permalink
hal_config: Remove LINUX_SPECIFIC_API switch
Browse files Browse the repository at this point in the history
We only used it for thread naming - the hal_platform malloc analysis
support was removed a long time ago. As we do not really need thread
naming and removed it when cleaning up hal_task, we do not need this
define anymore.

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
  • Loading branch information
felix-walter committed Dec 20, 2023
1 parent 47194d2 commit 75edf0c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
4 changes: 0 additions & 4 deletions components/platform/posix/hal_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
#include <string.h>
#include <unistd.h>

#if LINUX_SPECIFIC_API
#include <malloc.h>
#endif

static char **restart_args;

static void exit_handler(int signal)
Expand Down
3 changes: 0 additions & 3 deletions config.mk.example
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,3 @@
# For release builds, if this is not set, the default value is 2 (WARNING).
# Note that log level 4 (DEBUG) is only available in debug builds.
#CPPFLAGS += -DDEFAULT_LOG_LEVEL=3

# Whether to use Linux-specific API functions such as thread naming.
#CPPFLAGS += -DLINUX_SPECIFIC_API=0
6 changes: 0 additions & 6 deletions include/platform/posix/hal_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,4 @@
#define CONTACT_MANAGEMENT_TASK_STACK_SIZE 0


/* PLATFORM CONFIGURATION */

#ifndef LINUX_SPECIFIC_API
#define LINUX_SPECIFIC_API 0
#endif // LINUX_SPECIFIC_API

#endif /* HAL_CONFIG_H_INCLUDED */

0 comments on commit 75edf0c

Please sign in to comment.