Skip to content
Commit 9c472392 authored by Keith Packard's avatar Keith Packard Committed by Carles Cufí
Browse files

sys/time_units.h: Make SYS_TIMEOUT_MS usable as constant initializer



To make this macro usable as an initializer for static or global data, it
cannot have struct values within the expression, instead it must compute
the tick value as a primitive value and then wrap that in the struct as the
final step.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent 8f5d0791
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment