diff options
| author | Simon Tatham <anakin@pobox.com> | 2023-05-01 13:42:43 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2023-05-01 13:42:43 +0100 |
| commit | c48a9f44ffdd2bd2055a5296c84874716dd303b9 (patch) | |
| tree | cafe7285cd7930454e8b5e444f4b5985d6f27203 | |
| parent | 4de9836bc8c36cddead5e9efc6beff0692118b1e (diff) | |
| download | puzzles-c48a9f44ffdd2bd2055a5296c84874716dd303b9.zip puzzles-c48a9f44ffdd2bd2055a5296c84874716dd303b9.tar.gz puzzles-c48a9f44ffdd2bd2055a5296c84874716dd303b9.tar.bz2 puzzles-c48a9f44ffdd2bd2055a5296c84874716dd303b9.tar.xz | |
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.
| -rw-r--r-- | puzzles.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -539,7 +539,7 @@ void random_free(random_state *state); char *random_state_encode(random_state *state); random_state *random_state_decode(const char *input); /* random.c also exports SHA, which occasionally comes in useful. */ -#if __STDC_VERSION__ >= 199901L +#if HAVE_STDINT_H #include <stdint.h> typedef uint32_t uint32; #elif UINT_MAX >= 4294967295L |