]> granicus.if.org Git - flex/commit
scanner: More compatible flex integer type definitions.
authorExplorer09 <explorer09@gmail.com>
Thu, 8 Mar 2018 02:00:33 +0000 (10:00 +0800)
committerWill Estes <westes575@gmail.com>
Thu, 8 Mar 2018 21:00:24 +0000 (16:00 -0500)
commite1f6b4a26399b0e7849fd646fe5ee690231b32d4
treeada122a6a888e1780c61c5ee5342e7a5e930ca94
parent5574881ff4c9b08c73b6acc0087d6046c2b48de5
scanner: More compatible flex integer type definitions.

Visual C++ 2010 does not define __STDC_VERSION__, and (before Visual
C++ 2013) has <stdint.h> and not <inttypes.h>.

ANSI/ISO C only requires at least 16 bits for int type (not 32 bits as
required by POSIX since SUSv2), so check the bit length before the
typedef.

Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
src/flexint_shared.h