lots of Windows fixes and cross compilation for Windows

This commit is contained in:
Alexander Medvednikov 2019-07-01 11:01:48 +02:00
parent e71213ba4f
commit 99a9a6572a
6 changed files with 132 additions and 156 deletions

View file

@ -810,7 +810,8 @@ fn (p mut Parser) get_type() string {
// "typ" not found? try "pkg__typ"
if t.name == '' && !p.builtin_pkg {
// && !p.first_run() {
if !typ.contains('array_') && p.pkg != 'main' && !typ.contains('__') {
if !typ.contains('array_') && p.pkg != 'main' && !typ.contains('__') &&
!typ.starts_with('[') {
typ = p.prepend_pkg(typ)
}
t = p.table.find_type(typ)