mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-22 00:15:46 -07:00
Replace check of __STDC_VERSION__ with HAVE_STDINT_H.
Just spotted this in puzzles.h. We don't need to guess any more from the C standards version whether stdint.h is available: we've actually checked _precisely that_ in cmake, so it's better to use the answer.
This commit is contained in:
@ -539,7 +539,7 @@ void random_free(random_state *state);
|
|||||||
char *random_state_encode(random_state *state);
|
char *random_state_encode(random_state *state);
|
||||||
random_state *random_state_decode(const char *input);
|
random_state *random_state_decode(const char *input);
|
||||||
/* random.c also exports SHA, which occasionally comes in useful. */
|
/* random.c also exports SHA, which occasionally comes in useful. */
|
||||||
#if __STDC_VERSION__ >= 199901L
|
#if HAVE_STDINT_H
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
typedef uint32_t uint32;
|
typedef uint32_t uint32;
|
||||||
#elif UINT_MAX >= 4294967295L
|
#elif UINT_MAX >= 4294967295L
|
||||||
|
Reference in New Issue
Block a user