time: Change TIME_HAVE_MONOTONIC to be 0/1 rather than defined/undefined
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 21 Nov 2016 13:52:53 +0000 (00:52 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 21 Nov 2016 13:52:53 +0000 (00:52 +1100)
commit294fb52e52d49538451087719354c4965bd8d49b
treec848a005c09493649b9a1a637f372a074d78a953
parent615189ae6de685ae6eb5a19b877340d731bba747
time: Change TIME_HAVE_MONOTONIC to be 0/1 rather than defined/undefined

Generally, ccan config variables are always defined as either 0 or 1 and
are tested with #if.  That's instead of being being either defined or
undefined and tested with #ifdef.

TIME_HAVE_MONOTONIC breaks that convention.  This can cause warnings in
ccan/timer which uses it assuming the 0/1 convention.  Change it to remove
that warning.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan/time/time.c
ccan/time/time.h