diff options
Diffstat (limited to 'src/localconsts.h')
-rw-r--r-- | src/localconsts.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/localconsts.h b/src/localconsts.h index 63a015cb5..174e3442d 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -24,6 +24,11 @@ #define ENABLEDEBUGLOG 1 +/* + * compile-time number of array elements + */ +#define NUM_ELEMENTS(array) (sizeof(array) / sizeof(array[0])) + #ifndef GCC_VERSION #define GCC_VERSION (__GNUC__ * 10000 \ + __GNUC_MINOR__ * 100 \ @@ -396,8 +401,7 @@ PRAGMA45(GCC diagnostic pop) #ifdef DYECMD #undef USE_FUZZER #endif // DYECMD -#include "utils/perfomance.h" -UTILS_PERFOMANCE_H // guard for protect previous include + #ifdef HAVE_CONFIG_H #include "config.h" #endif // HAVE_CONFIG_H |