Skip to content

Commit 42dcfec

Browse files
committed
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.
1 parent d48f020 commit 42dcfec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/tagreader_c.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2323
*/
2424

25+
#include "tag_c.h"
26+
2527
#include <stdio.h>
2628
#include <string.h>
2729

28-
#include "tag_c.h"
29-
3030
#ifndef FALSE
3131
#define FALSE 0
3232
#endif

0 commit comments

Comments
 (0)