From 1b7a84633e4b80e79a7fd9932559949834fee6ee Mon Sep 17 00:00:00 2001 From: auronandace Date: Sat, 9 May 2026 12:09:33 +0100 Subject: [PATCH] eliminate function export struct workaround for posix_dent --- src/header/dirent/cbindgen.toml | 3 +++ src/header/dirent/mod.rs | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/header/dirent/cbindgen.toml b/src/header/dirent/cbindgen.toml index e229472647..ca377a4cef 100644 --- a/src/header/dirent/cbindgen.toml +++ b/src/header/dirent/cbindgen.toml @@ -18,3 +18,6 @@ cpp_compat = true [enum] prefix_with_name = true + +[export] +include = ["posix_dent"] diff --git a/src/header/dirent/mod.rs b/src/header/dirent/mod.rs index 17eccf0b4e..de3e1f53f8 100644 --- a/src/header/dirent/mod.rs +++ b/src/header/dirent/mod.rs @@ -394,6 +394,3 @@ pub extern "C" fn seekdir(dir: &mut DIR, off: c_long) { pub extern "C" fn telldir(dir: &mut DIR) -> c_long { dir.opaque_offset as c_long } - -#[unsafe(no_mangle)] -pub unsafe extern "C" fn cbindgen_stupid_struct_user_for_posix_dent(_: posix_dent) {}