Skip to content
Commit 1f4e911d authored by Patryk Duda's avatar Patryk Duda Committed by Carles Cufí
Browse files

toolchain/llvm: Provide integer macros only when necessary



Using '#ifndef' before defining a macro is a good way to provide default
version of the macro if not defined elsewhere. But it has some
disadvantages:
- It hides information about the users of these macros. It's hard to
  determine when this implementation is used.
- Correctness depends on file including order.

It looks like these macros are used only by minimal libc and only if
ENFORCE_ZEPHYR_STDINT is not selected. We expect other libc to provide
their own implementation.

Signed-off-by: default avatarPatryk Duda <patrykd@google.com>
parent 759dcfe1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment