From e18e9b21955a6213342206ffaa0b1fe0aa844063 Mon Sep 17 00:00:00 2001 From: milang Date: Mon, 2 Sep 2019 11:41:37 +0200 Subject: [PATCH] complete define protection now it is possible to use fxengine without libprof --- src/render/triangle.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/render/triangle.c b/src/render/triangle.c index 47c42ad..f974be1 100644 --- a/src/render/triangle.c +++ b/src/render/triangle.c @@ -10,13 +10,16 @@ #include #include +#ifdef USE_LIBPROF + static uint32_t frame_interval_min=1000000; + static uint32_t frame_interval_max=1; +#endif void render_update(const uint32_t libprof_channel) { //dupdate(); + #ifdef USE_LIBPROF - static uint32_t frame_interval_min=1000000; - static uint32_t frame_interval_max=1; // gestion du temps avec libprof if (prof_elapsed) {