meson: Actually define TIMINGS if needed (#621)

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2017-07-04 15:35:49 +02:00 committed by Dave Davenport
parent c7e8776c78
commit 727e3dc51a
3 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,7 @@
* @ingroup HELPERS
* @{
*/
#if TIMINGS
#ifdef TIMINGS
/**
* Init the timestamping mechanism .
* implementation.

View File

@ -94,6 +94,7 @@ endif
header_conf.set('ENABLE_DRUN', get_option('enable-drun'))
header_conf.set('WINDOW_MODE', get_option('enable-window'))
header_conf.set('TIMINGS', get_option('enable-timings'))
header_conf.set_quoted('MANPAGE_PATH', join_paths(get_option('prefix'), get_option('mandir')))
header_conf.set_quoted('SYSCONFDIR', join_paths(get_option('prefix'), get_option('sysconfdir')))

View File

@ -28,7 +28,7 @@
#include <stdio.h>
#include "rofi.h"
#include "timings.h"
#if TIMINGS
#ifdef TIMINGS
GTimer *global_timer = NULL;
double global_timer_last = 0.0;
FILE *timing_log = NULL;