|
|
|
@ -22,22 +22,22 @@
|
|
|
|
|
// std::clock_t
|
|
|
|
|
#include <ctime>
|
|
|
|
|
|
|
|
|
|
// linux has __GNUC_PREREQ, NetBSD has __GNUC_PRETQ__
|
|
|
|
|
#if defined(__GNUC_PREREQ) && !defined(__GNUC_PRERETQ__)
|
|
|
|
|
#define __GNUC_PRERETQ__ __GNUC_PREREQ
|
|
|
|
|
// linux has __GNUC_PREREQ, NetBSD has __GNUC_PREQ__
|
|
|
|
|
#if defined(__GNUC_PREREQ) && !defined(__GNUC_PREREQ__)
|
|
|
|
|
#define __GNUC_PREREQ__ __GNUC_PREREQ
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if !defined(__GNUC_PRERETQ__)
|
|
|
|
|
#if !defined(__GNUC_PREREQ__)
|
|
|
|
|
#if defined __GNUC__
|
|
|
|
|
#define __GNUC_PRERETQ__(x, y) \
|
|
|
|
|
#define __GNUC_PREREQ__(x, y) \
|
|
|
|
|
((__GNUC__ == (x) && __GNUC_MINOR__ >= (y)) || \
|
|
|
|
|
(__GNUC__ > (x)))
|
|
|
|
|
#else
|
|
|
|
|
#define __GNUC_PRERETQ__(x, y) 0
|
|
|
|
|
#define __GNUC_PREREQ__(x, y) 0
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
# if defined __cplusplus ? __GNUC_PRERETQ__ (2, 6) : __GNUC_PRERETQ__ (2, 4)
|
|
|
|
|
# if defined __cplusplus ? __GNUC_PREREQ__ (2, 6) : __GNUC_PREREQ__ (2, 4)
|
|
|
|
|
# define MY_FUNCTION __PRETTY_FUNCTION__
|
|
|
|
|
# else
|
|
|
|
|
# if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
|
|
|
|
|