mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: fix v -shared vlib/json
on windows
This commit is contained in:
parent
bf749b3559
commit
4a22d4a65d
@ -2239,7 +2239,7 @@ fn (mut c Checker) hash_stmt(mut node ast.HashStmt) {
|
||||
else {
|
||||
if node.kind == 'define' {
|
||||
if !c.is_builtin_mod && !c.file.path.ends_with('.c.v')
|
||||
&& !c.file.path.contains('vlib' + os.path_separator) {
|
||||
&& !c.file.path.contains('vlib') {
|
||||
c.error("#define can only be used in vlib (V's standard library) and *.c.v files",
|
||||
node.pos)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user