From 237669a1b2b969aaa2bcf672d56b126ac2b87405 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 8 Jan 2025 19:27:25 +0800 Subject: [PATCH] fixes types with a header --- compiler/ccgtypes.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 67a23c0dd7..94091e5814 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -235,7 +235,7 @@ proc isImportedType(t: PType): bool = result = t.sym != nil and sfImportc in t.sym.flags proc isNoDeclType(t: PType): bool = - result = t.sym != nil and lfNoDecl in t.sym.loc.flags + result = t.sym != nil and {lfNoDecl, lfHeader} * t.sym.loc.flags = {} proc isImportedCppType(t: PType): bool = let x = t.skipTypes(irrelevantForBackend)