Commit da319823 authored by Chun-wei Fan's avatar Chun-wei Fan

Fix build on C89 compilers

-Avoid defining variables in the middle of the block
-Include fallback-c89.c in gtkrevealer.c in place of math.h as
 fallback-c89.c includes math.h itself, and is needed for round()
parent 8b15b441
......@@ -343,8 +343,9 @@ _gtk_bookmarks_manager_insert_bookmark (GtkBookmarksManager *manager,
if (link)
{
gchar *uri;
bookmark = link->data;
gchar *uri = g_file_get_uri (bookmark->file);
uri = g_file_get_uri (bookmark->file);
g_set_error (error,
GTK_FILE_CHOOSER_ERROR,
......
......@@ -26,7 +26,8 @@
#include "gtktypebuiltins.h"
#include "gtkprivate.h"
#include "gtkintl.h"
#include <math.h>
#include "fallback-c89.c"
/**
* SECTION:gtkrevealer
......
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