mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
macros: add helper to check for gcc version
This commit is contained in:
@ -61,6 +61,15 @@
|
||||
|
||||
#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
|
||||
#define SYSPROF_INT64_CONSTANT(x) x##ULL
|
||||
#define SYSPROF_UINT64_CONSTANT(x) x##LL
|
||||
|
||||
Reference in New Issue
Block a user