From: Ulya Trofimovich Date: Sun, 29 Nov 2015 11:38:04 +0000 (+0000) Subject: Removed obsolete '__STDC_LIMIT_MACROS' and '__STDC_CONSTANT_MACROS' defines. X-Git-Tag: 0.15.3~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a5f15418817f52bd6ae02129a960abea1e064f7;p=re2c Removed obsolete '__STDC_LIMIT_MACROS' and '__STDC_CONSTANT_MACROS' defines. These defines were necessary to enable numeric limits definitions (such as 'UINT32_MAX') in our local version of 'stdint.h' (which is used on platforms that don't have system header 'stdint.h'). As noted by commit b237daed2095c1e138761fb94a01d53ba2c80c95, this workaround doesn't work on FreeBSD, so re2c now uses 'numeric_limits.h'. --- diff --git a/re2c/src/util/c99_stdint.h b/re2c/src/util/c99_stdint.h index 7382eb50..ffe2e3ee 100644 --- a/re2c/src/util/c99_stdint.h +++ b/re2c/src/util/c99_stdint.h @@ -3,10 +3,6 @@ #include "config.h" -// these defines enable some parts of -#define __STDC_LIMIT_MACROS // C99-7.18.2.1 Limits of exact-width integer types -#define __STDC_CONSTANT_MACROS // C99-7.18.4.1 Macros for minimum-width integer constants - #if HAVE_STDINT_H # include #else // HAVE_STDINT_H