mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
517 B
10 lines
517 B
/* GCC. Clang also defines __GNUC__ so don't detect GCC if using Clang. */
|
|
#if defined(__GNUC__) && !defined(__clang__) && !defined(DUK_F_CLANG)
|
|
#define DUK_F_GCC
|
|
#if defined(__GNUC__) && defined(__GNUC_MINOR__) && defined(__GNUC_PATCHLEVEL__)
|
|
/* Convenience, e.g. gcc 4.5.1 == 40501; http://stackoverflow.com/questions/6031819/emulating-gccs-builtin-unreachable */
|
|
#define DUK_F_GCC_VERSION (__GNUC__ * 10000L + __GNUC_MINOR__ * 100L + __GNUC_PATCHLEVEL__)
|
|
#else
|
|
#error cannot figure out gcc version
|
|
#endif
|
|
#endif
|
|
|