]> granicus.if.org Git - nethack/commit
Workaround for including stdint.h on older GCC versions
authorPatric Mueller <bhaak@gmx.net>
Tue, 29 Jan 2019 14:03:07 +0000 (15:03 +0100)
committerPatric Mueller <bhaak@gmx.net>
Tue, 29 Jan 2019 14:10:01 +0000 (15:10 +0100)
commitb7edc7f8e861aa5e5e5e095c4024bd820dcb9557
treea88b627efdd5f8f6450152b14dc9e284891d4c5e
parentaf42273b0201c527cf487e15233d13b69891db7c
Workaround for including stdint.h on older GCC versions

GCC doesn't set __STDC_VERSION__ for older versions. It is verified to
be set by default on 5.3.0.

Older versions set __INT64_MAX__ though (oldest version tested is
4.5.4).

If compilation with older GCC versions is required, set -std=c99. Even
3.4.6 is supported with this setting.
include/integer.h