Skip to content

Commit c8bc2af

Browse files
committed
Fix build
1 parent 8ad723e commit c8bc2af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dir.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,11 +732,13 @@ pub(crate) struct LfnBuffer {
732732
ucs2_units: Vec<u16>,
733733
}
734734

735+
#[cfg(feature = "lfn")]
735736
const MAX_LONG_NAME_LEN: usize = 255;
736737

738+
#[cfg(feature = "lfn")]
737739
const MAX_LONG_DIR_ENTRIES: usize = (MAX_LONG_NAME_LEN + LFN_PART_LEN - 1) / LFN_PART_LEN;
738740

739-
#[cfg(not(feature = "alloc"))]
741+
#[cfg(all(feature = "lfn", not(feature = "alloc")))]
740742
const LONG_NAME_BUFFER_LEN: usize = MAX_LONG_DIR_ENTRIES * LFN_PART_LEN;
741743

742744
#[cfg(all(feature = "lfn", not(feature = "alloc")))]

0 commit comments

Comments
 (0)