aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2018-03-09 15:36:38 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2018-03-09 15:36:38 +0100
commitc5ba9c025b7ebc34979e839453528f6e4a18712d (patch)
tree3333fb009b739545dcb0af03f87b9352dac906bc
parentb81888ee7d95d9ecb7b1749630b09a96065a8fea (diff)
downloadst-patched-c5ba9c025b7ebc34979e839453528f6e4a18712d.tar.bz2
st-patched-c5ba9c025b7ebc34979e839453528f6e4a18712d.tar.xz
st-patched-c5ba9c025b7ebc34979e839453528f6e4a18712d.zip
use math.h for ceilf
-rw-r--r--x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/x.c b/x.c
index 537322b..d43a529 100644
--- a/x.c
+++ b/x.c
@@ -1,5 +1,6 @@
1/* See LICENSE for license details. */ 1/* See LICENSE for license details. */
2#include <errno.h> 2#include <errno.h>
3#include <math.h>
3#include <limits.h> 4#include <limits.h>
4#include <locale.h> 5#include <locale.h>
5#include <signal.h> 6#include <signal.h>
@@ -901,7 +902,6 @@ xloadfonts(char *fontstr, double fontsize)
901{ 902{
902 FcPattern *pattern; 903 FcPattern *pattern;
903 double fontval; 904 double fontval;
904 float ceilf(float);
905 905
906 if (fontstr[0] == '-') { 906 if (fontstr[0] == '-') {
907 pattern = XftXlfdParse(fontstr, False, False); 907 pattern = XftXlfdParse(fontstr, False, False);