mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
macros: add helper to check for gcc version
This commit is contained in:
@ -61,6 +61,15 @@
|
|||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#define SYSPROF_GNUC_CHECK_VERSION(major, minor) \
|
||||||
|
((__GNUC__ > (major)) || \
|
||||||
|
((__GNUC__ == (major)) && \
|
||||||
|
(__GNUC_MINOR__ >= (minor))))
|
||||||
|
#else
|
||||||
|
#define SYSPROF_GNUC_CHECK_VERSION(major, minor) 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#if INT_MAX == LONG_MAX
|
#if INT_MAX == LONG_MAX
|
||||||
#define SYSPROF_INT64_CONSTANT(x) x##ULL
|
#define SYSPROF_INT64_CONSTANT(x) x##ULL
|
||||||
#define SYSPROF_UINT64_CONSTANT(x) x##LL
|
#define SYSPROF_UINT64_CONSTANT(x) x##LL
|
||||||
|
|||||||
Reference in New Issue
Block a user