<p></p>
<blockquote>
<p>I think regex.h was included also before these patches, how was it handled on MINGW?</p>
</blockquote>
<p>It was included before but only in <code>ctags/main/lregex.c</code>.<br>
On Windows, we use the bundled regex library in <code>ctags/gnu_regex</code> and this is added to <code>AM_CPPFLAGS</code> in <code>ctagsMakefile.am</code> but not in <code>src/tagmanager/</code> where it is now <strong>also</strong> included because the <code>regex-h</code> include itself is now in a header file.</p>
<p>One solution could be:</p>
<pre><code>diff --git a/src/tagmanager/Makefile.am b/src/tagmanager/Makefile.am
index 066192b95..53759db0d 100644
--- a/src/tagmanager/Makefile.am
+++ b/src/tagmanager/Makefile.am
@@ -3,6 +3,12 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/ctags/main \
        -DGEANY_PRIVATE \
        -DG_LOG_DOMAIN=\"Tagmanager\"
+
+if USE_BUNDLED_REGEX
+noinst_LTLIBRARIES += libgnu_regex.la
+AM_CPPFLAGS += -I$(srcdir)/gnu_regex
+endif
+
 AM_CFLAGS = \
        $(GTK_CFLAGS) \
        @LIBGEANY_CFLAGS@
</code></pre>
<p>I'll try this tomorrow on my Windows machine and see if it'll suffice.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2984#issuecomment-962698396">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJYKSAALSTLM3J6VLZLUK4BHTANCNFSM5HOL52JA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ5T7D2TFPONCK2UAUTUK4BHTA5CNFSM5HOL52JKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHFQZZHA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2984#issuecomment-962698396",
"url": "https://github.com/geany/geany/pull/2984#issuecomment-962698396",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>