summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorThomas Thurman <tthurman@gnome.org>2008-02-27 04:39:10 +0000
committerThomas James Alexander Thurman <tthurman@src.gnome.org>2008-02-27 04:39:10 +0000
commit85631aec0f6b76f9e08afd12123555e07757397e (patch)
tree731dee6e4e4db0913a80d7dd3b8662d9439791f7 /src/ui
parent401b716cf5143fa69603c1b20f95f3745b1046ed (diff)
downloadmetacity-85631aec0f6b76f9e08afd12123555e07757397e.tar.gz
Lots of tiny fixes to make sure we compile with "gcc -ansi -Werror".
2008-02-27 Thomas Thurman <tthurman@gnome.org> Lots of tiny fixes to make sure we compile with "gcc -ansi -Werror". svn path=/trunk/; revision=3606
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/preview-widget.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/preview-widget.c b/src/ui/preview-widget.c
index 57bb8b31..c0ac6d74 100644
--- a/src/ui/preview-widget.c
+++ b/src/ui/preview-widget.c
@@ -21,6 +21,10 @@
* 02111-1307, USA.
*/
+#define _GNU_SOURCE
+#define _XOPEN_SOURCE 600 /* for the maths routines over floats */
+
+#include <math.h>
#include "preview-widget.h"
static void meta_preview_class_init (MetaPreviewClass *klass);
@@ -470,7 +474,7 @@ meta_preview_get_clip_region (MetaPreview *preview, gint new_window_width, gint
MetaFrameLayout *fgeom;
MetaFrameStyle *frame_style;
- g_return_if_fail (META_IS_PREVIEW (preview));
+ g_return_val_if_fail (META_IS_PREVIEW (preview), NULL);
flags = (META_PREVIEW (preview)->flags);