From e3d5166cc68cdcc9b3a4750a34ae304ed05c6d14 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Fri, 12 May 2023 11:07:23 -0500 Subject: [PATCH] Only exclude inline function constants (#2506) --- crates/libs/metadata/src/reader/mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/libs/metadata/src/reader/mod.rs b/crates/libs/metadata/src/reader/mod.rs index d36eaaefad..b76717242e 100644 --- a/crates/libs/metadata/src/reader/mod.rs +++ b/crates/libs/metadata/src/reader/mod.rs @@ -262,10 +262,8 @@ impl<'a> Reader<'a> { return false; } - // If the module name lacks a `.` then it's likely either an inline function, which windows-rs - // doesn't currently support, or an invalid import library since the extension must be known - // in order to generate an import table entry unambiguously. - return self.module_ref_name(self.impl_map_scope(impl_map)).contains('.'); + // Skip "inline" function constants. + self.module_ref_name(self.impl_map_scope(impl_map)) != "FORCEINLINE" }) } pub fn namespace_constants(&self, namespace: &str) -> impl Iterator + '_ {