Commit 0f4f0934 authored by William Jon McCann's avatar William Jon McCann

Define a trunc macro for systems that don't have one

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=583285
parent 7a91357c
......@@ -41,6 +41,10 @@
#include "gs-theme-window.h"
#ifndef trunc
#define trunc(x) ((x > 0.0) ? floor(x) : -floor(-x))
#endif
#ifndef OPTIMAL_FRAME_RATE
#define OPTIMAL_FRAME_RATE (25.0)
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment