RodrigoDornelles / 3bc-lang

Low-level language, tiny virtual machine, minimal runtime, intermediate representation, embeddable, easy for beginners. (Friendly Punched cards)
https://3bc-lang.org
GNU General Public License v3.0
231 stars 25 forks source link

Windows: fix incompatible pointer types #413

Closed kassane closed 11 months ago

kassane commented 11 months ago

error

https://github.com/kassane/3bc-zig/actions/runs/5601555100/jobs/10245605430#step:4:9

Debug native-windows: error: error(compilation): clang failed with stderr: In file included from /home/kassane/Documentos/3bc_learn/3bc-z/dep/3bc-lang.git/src/sys/sys_windows_output.c:6:
In file included from /home/kassane/Documentos/3bc_learn/3bc-z/dep/3bc-lang.git/src/sys/sys_windows_output.h:4:
In file included from /home/kassane/Documentos/3bc_learn/3bc-z/dep/3bc-lang.git/src/3bc_types.h:46:
/home/kassane/Documentos/3bc_learn/3bc-z/dep/3bc-lang.git/src/types/types_tty.h:117:7: warning: no newline at end of file [-Wnewline-eof]
/home/kassane/Documentos/3bc_learn/3bc-z/dep/3bc-lang.git/src/sys/sys_windows_output.c:11:29: error: initializer element is not a compile-time constant
/home/kassane/Documentos/3bc_learn/3bc-z/dep/3bc-lang.git/src/sys/sys_windows_output.c:18:13: warning: incompatible pointer types passing 'LPDWORD *' (aka 'unsigned long **') to parameter of type 'LPDWORD' (aka 'unsigned long *'); remove & [-Wincompatible-pointer-types]
/home/kassane/zig/0.11.0-dev.4010+70c71935c/files/lib/libc/include/any-windows-any/fileapi.h:186:109: note: passing argument to parameter 'lpNumberOfBytesWritten' here
/home/kassane/Documentos/3bc_learn/3bc-z/dep/3bc-lang.git/src/sys/sys_windows_output.c:26:13: warning: incompatible pointer types passing 'LPDWORD *' (aka 'unsigned long **') to parameter of type 'LPDWORD' (aka 'unsigned long *'); remove & [-Wincompatible-pointer-types]
/home/kassane/zig/0.11.0-dev.4010+70c71935c/files/lib/libc/include/any-windows-any/fileapi.h:186:109: note: passing argument to parameter 'lpNumberOfBytesWritten' here

MinGW not detect Windows.h, but windows.h!

cc: @RodrigoDornelles