aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGraham Bloice <graham.bloice@trihedral.com>2007-04-04 12:18:10 +0000
committerGraham Bloice <graham.bloice@trihedral.com>2007-04-04 12:18:10 +0000
commit7710d21893f6889dc1d1db2be7cb0c79eed04523 (patch)
tree19ecfbedace401047292090b58abfaf93fe7dc6e /gtk
parent31dfe963263e64d916be6e98474a52eabf14be36 (diff)
Fix build failures due to windows.h being included before winsock2.h via other includes
svn path=/trunk/; revision=21335
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gui_utils.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/gtk/gui_utils.c b/gtk/gui_utils.c
index 727c297845..248742a419 100644
--- a/gtk/gui_utils.c
+++ b/gtk/gui_utils.c
@@ -30,11 +30,6 @@
#include <string.h>
-#ifdef _WIN32
-#include <windows.h>
-#endif
-
-
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
@@ -47,6 +42,9 @@
#include "compat_macros.h"
#include "recent.h"
+#ifdef _WIN32
+#include <windows.h>
+#endif
#include "image/wsicon16.xpm"
@@ -1109,7 +1107,7 @@ void copy_binary_get_cb(GtkClipboard *clipboard _U_, GtkSelectionData *selection
void copy_binary_to_clipboard(const guint8* data_p, int len)
{
static GtkTargetEntry target_entry[] = {
- {"application/octet_stream", 0, 0}}; /* XXX - this not understood by most applications,
+ {"application/octet_stream", 0, 0}}; /* XXX - this not understood by most applications,
* but can be pasted into the better hex editors - is
* there something better that we can do?
*/
@@ -1129,7 +1127,7 @@ void copy_binary_to_clipboard(const guint8* data_p, int len)
if(!ret) {
destroy_copy_binary_t(copy_data);
- }
+ }
}
#endif /* GTK_MAJOR_VERSION >= 2 */