Skip to content

Commit

Permalink
gtksourceview3 windows: fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Nov 13, 2016
1 parent 03b016e commit 29adc98
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gtksourceview3/Rakefile
Expand Up @@ -52,8 +52,11 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
],
:patches => [
"gtksourceview-3.22.1-include-missing-header.diff",
"gtksourceview-3.22.1-remove-unused-definition.diff",
"gtksourceview-3.22.1-add-missing-config-include.diff",
],
:built_file => "bin/libgtksourceview-3.0-1.dll",
:need_autoreconf => true,
},
}
]
Expand Down
@@ -0,0 +1,15 @@
diff --git a/gtksourceview/gtksourceregion.c b/gtksourceview/gtksourceregion.c
index f75e574..8ab5413 100644
--- a/gtksourceview/gtksourceregion.c
+++ b/gtksourceview/gtksourceregion.c
@@ -20,6 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "gtksourceregion.h"

/**
@@ -0,0 +1,12 @@
diff --git a/gtksourceview/Makefile.am b/gtksourceview/Makefile.am
index caf449c..0bc8159 100644
--- a/gtksourceview/Makefile.am
+++ b/gtksourceview/Makefile.am
@@ -3,7 +3,6 @@ SUBDIRS = completion-providers
@CODE_COVERAGE_RULES@

AM_CPPFLAGS = \
- -DDATADIR=\""$(datadir)"\" \
-DG_LOG_DOMAIN=\"GtkSourceView\"\
-DGTK_SOURCE_COMPILATION \
-I$(top_builddir) \

0 comments on commit 29adc98

Please sign in to comment.