We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ad723e commit c8bc2afCopy full SHA for c8bc2af
src/dir.rs
@@ -732,11 +732,13 @@ pub(crate) struct LfnBuffer {
732
ucs2_units: Vec<u16>,
733
}
734
735
+#[cfg(feature = "lfn")]
736
const MAX_LONG_NAME_LEN: usize = 255;
737
738
739
const MAX_LONG_DIR_ENTRIES: usize = (MAX_LONG_NAME_LEN + LFN_PART_LEN - 1) / LFN_PART_LEN;
740
-#[cfg(not(feature = "alloc"))]
741
+#[cfg(all(feature = "lfn", not(feature = "alloc")))]
742
const LONG_NAME_BUFFER_LEN: usize = MAX_LONG_DIR_ENTRIES * LFN_PART_LEN;
743
744
#[cfg(all(feature = "lfn", not(feature = "alloc")))]
0 commit comments