Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions lib/libc/minimal/include/sys/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,4 @@ typedef _TIME_T_ time_t;
typedef _SUSECONDS_T_ suseconds_t;
#endif

#if !defined(__mem_word_t_defined)
#define __mem_word_t_defined

/*
* The mem_word_t should match the optimal memory access word width
* on the target platform. Here we defaults it to uintptr_t.
*/

typedef uintptr_t mem_word_t;

#define Z_MEM_WORD_T_WIDTH __INTPTR_WIDTH__

#endif

#endif /* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS_TYPES_H_ */
14 changes: 14 additions & 0 deletions lib/libc/minimal/source/string/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@
#include <stdint.h>
#include <sys/types.h>

#if !defined(__mem_word_t_defined)
#define __mem_word_t_defined

/*
* The mem_word_t should match the optimal memory access word width
* on the target platform. Here we default it to uintptr_t.
*/

typedef uintptr_t mem_word_t;

#define Z_MEM_WORD_T_WIDTH __INTPTR_WIDTH__

#endif

/**
*
* @brief Copy a string
Expand Down