diff --git a/src/win32.c b/src/win32.c index 56bb27cd71..3b8db5ce2b 100644 --- a/src/win32.c +++ b/src/win32.c @@ -23,6 +23,7 @@ * Special functions for the win32 platform, to provide native dialogs. */ +#include "win32.h" #ifdef G_OS_WIN32 @@ -45,8 +46,6 @@ #include #include -#include "win32.h" - #include "document.h" #include "support.h" #include "utils.h" diff --git a/src/win32.h b/src/win32.h index 80ffddc754..72de162cfa 100644 --- a/src/win32.h +++ b/src/win32.h @@ -22,10 +22,13 @@ #ifndef GEANY_WIN32_H #define GEANY_WIN32_H 1 -#ifdef G_OS_WIN32 +#include "document.h" #include "gtkcompat.h" + +#ifdef G_OS_WIN32 + G_BEGIN_DECLS void win32_show_pref_file_dialog(GtkEntry *item);