From 42dcfec86b88c1707f158d06019d2730f1182cb9 Mon Sep 17 00:00:00 2001 From: Urs Fleisch Date: Sun, 8 Jun 2025 08:40:02 +0200 Subject: [PATCH] Use tag_c.h as first include in build with C compiler (#1273) This will fail on MinGW because its gcc does not have wchar_t without including wchar.h. With g++ as used with test_tag_c.cpp, the problem is undetected because g++ supports wchar_t without including wchar.h. --- examples/tagreader_c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/tagreader_c.c b/examples/tagreader_c.c index 13866404..ce67275d 100644 --- a/examples/tagreader_c.c +++ b/examples/tagreader_c.c @@ -22,11 +22,11 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "tag_c.h" + #include #include -#include "tag_c.h" - #ifndef FALSE #define FALSE 0 #endif