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.
This commit is contained in:
@@ -17,6 +17,10 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#define SKIP_STDINT_WORKAROUND
|
#define SKIP_STDINT_WORKAROUND
|
||||||
# endif
|
# endif
|
||||||
|
# if defined(__GNUC__) && defined(__INT64_MAX__)
|
||||||
|
# include <stdint.h>
|
||||||
|
# define SKIP_STDINT_WORKAROUND
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SKIP_STDINT_WORKAROUND /* !C99 */
|
#ifndef SKIP_STDINT_WORKAROUND /* !C99 */
|
||||||
|
|||||||
Reference in New Issue
Block a user