Skip to content

Commit 90be47a

Browse files
committed
merge(develop): integrate wasm stdio.h fix
Merge develop branch containing fix for WebAssembly compilation Integrates the fix for stdio.h dependency that was causing invalid import 'fopen' errors in WebAssembly builds. BRANCH: develop
2 parents ce3412e + 2432448 commit 90be47a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/scanner.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#include <tree_sitter/parser.h>
22
#include <wctype.h>
3+
#ifndef __EMSCRIPTEN__
34
#include <stdio.h>
5+
#endif
46

5-
// Debug logging - disabled for normal operation
6-
#ifdef DEBUG_DISABLED_FOR_NOW
7+
// Debug logging - disabled for normal operation and WASM builds
8+
#if defined(DEBUG_DISABLED_FOR_NOW) && !defined(__EMSCRIPTEN__)
79
#define DEBUG_LOG(fmt, ...) fprintf(stderr, "[SCANNER] " fmt "\n", ##__VA_ARGS__)
810
#else
911
#define DEBUG_LOG(fmt, ...) do { } while (0)

0 commit comments

Comments
 (0)