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()
This commit is contained in:
@ -343,8 +343,9 @@ _gtk_bookmarks_manager_insert_bookmark (GtkBookmarksManager *manager,
|
|||||||
|
|
||||||
if (link)
|
if (link)
|
||||||
{
|
{
|
||||||
|
gchar *uri;
|
||||||
bookmark = link->data;
|
bookmark = link->data;
|
||||||
gchar *uri = g_file_get_uri (bookmark->file);
|
uri = g_file_get_uri (bookmark->file);
|
||||||
|
|
||||||
g_set_error (error,
|
g_set_error (error,
|
||||||
GTK_FILE_CHOOSER_ERROR,
|
GTK_FILE_CHOOSER_ERROR,
|
||||||
|
@ -26,7 +26,8 @@
|
|||||||
#include "gtktypebuiltins.h"
|
#include "gtktypebuiltins.h"
|
||||||
#include "gtkprivate.h"
|
#include "gtkprivate.h"
|
||||||
#include "gtkintl.h"
|
#include "gtkintl.h"
|
||||||
#include <math.h>
|
|
||||||
|
#include "fallback-c89.c"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SECTION:gtkrevealer
|
* SECTION:gtkrevealer
|
||||||
|
Reference in New Issue
Block a user