#ifndef _MAPPER_UTILS_H
#define _MAPPER_UTILS_H
-#define _GNU_SOURCE
-
-#include <config.h>
+#include "config.h"
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
} \
}
-#define DISTANCE_SQUARED(a, b) \
- ((guint64)((((gint64)(b).unitx)-(a).unitx)*(((gint64)(b).unitx)-(a).unitx))\
- + (guint64)((((gint64)(b).unity)-(a).unity)*(((gint64)(b).unity)-(a).unity)))
-
-
#ifdef WITH_OSSO
#define KEEP_DISPLAY_ON() { \
/* Note that the flag means keep on ONLY when fullscreen. */ \
#ifdef WITH_HILDON
#define MACRO_BANNER_SHOW_INFO(A, S) { \
- gchar *my_macro_buffer = g_strdup_printf("<span size='%s'>%s</span>", \
+ gchar *my_macro_buffer = g_markup_printf_escaped("<span size='%s'>%s</span>", \
INFO_FONT_TEXT[_info_font_size], (S)); \
hildon_banner_show_information_with_markup(A, NULL, my_macro_buffer); \
g_free(my_macro_buffer); \