endif
# prepare the lib flags used for the linker
-LIBFLAGS = $(shell pkg-config --libs $(LIBS)) -lX11 -lXext -lm
+LIBFLAGS = $(shell pkg-config --libs $(LIBS)) -lX11 -lXext
# normal compiler flags
CFLAGS += $(shell pkg-config --cflags $(LIBS))
#include "config.h"
#include <sys/stat.h>
-#include <math.h>
#include "main.h"
#include "util.h"
#include "command.h"
/* show the scroll status */
max = gtk_adjustment_get_upper(vb.gui.adjust_v) - gtk_adjustment_get_page_size(vb.gui.adjust_v);
- val = (int)floor(0.5 + (gtk_adjustment_get_value(vb.gui.adjust_v) / max * 100));
+ val = (int)(0.5 + (gtk_adjustment_get_value(vb.gui.adjust_v) / max * 100));
if (max == 0) {
g_string_append(status, " All");