From 798d929254e029c0fd350efb5ad42b4f97fcb00d Mon Sep 17 00:00:00 2001 From: auronandace Date: Wed, 29 Apr 2026 08:09:37 +0100 Subject: [PATCH] remove unused C header --- include/getopt.h | 21 --------------------- src/header/getopt/mod.rs | 1 + 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 include/getopt.h diff --git a/include/getopt.h b/include/getopt.h deleted file mode 100644 index 3db90d7080..0000000000 --- a/include/getopt.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef _GETOPT_H -#define _GETOPT_H - -// Generated from: -// `grep "opt" target/include/unistd.h` - -#ifdef __cplusplus -extern "C" { -#endif - -extern char* optarg; -extern int opterr; -extern int optind; -extern int optopt; -int getopt(int argc, char *const *argv, const char *optstring); - -#ifdef __cplusplus -} // extern "C" -#endif - -#endif diff --git a/src/header/getopt/mod.rs b/src/header/getopt/mod.rs index 13c079703b..1cc310a677 100644 --- a/src/header/getopt/mod.rs +++ b/src/header/getopt/mod.rs @@ -11,6 +11,7 @@ use crate::{ }; use core::ptr; +/// cbindgen:ignore static mut CURRENT_OPT: *mut c_char = ptr::null_mut(); /// Non-POSIX, see .