1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

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;