Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions fatfs/ffconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@
*/


#ifndef FF_USE_LFN
#define FF_USE_LFN 2
#endif
#define FF_MAX_LFN 255
/* The FF_USE_LFN switches the support for LFN (long file name).
/
Expand Down
11 changes: 11 additions & 0 deletions fatfs/go_fatfs_no_lfn.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//go:build no_lfn

package fatfs

// FF_USE_LFN controls long file name (LFN) support in FatFs (default: 2).
// Using the build tag no_lfn sets FF_USE_LFN=0 which disables LFN and
// restricts file names to the 8.3 short file name format. It also removes
// the Unicode conversion tables in ffunicode.c, resulting in ~60KB of flash savings.

// #cgo CFLAGS: -DFF_USE_LFN=0
import "C"