Skip to content

Commit

Permalink
build: Add -Wundef-prefix=BFS_
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator committed Sep 30, 2024
1 parent 90791fc commit eb08ff4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/flags.mk
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ AUTO_FLAGS := \
gen/flags/Wshadow.mk \
gen/flags/Wsign-compare.mk \
gen/flags/Wstrict-prototypes.mk \
gen/flags/Wundef-prefix.mk \
gen/flags/bind-now.mk \
gen/flags/deps.mk

Expand Down
5 changes: 5 additions & 0 deletions src/bfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,15 @@
#ifndef BFS_COMMAND
# define BFS_COMMAND "bfs"
#endif

#ifndef BFS_HOMEPAGE
# define BFS_HOMEPAGE "https://tavianator.com/projects/bfs.html"
#endif

#ifndef BFS_LINT
# define BFS_LINT false
#endif

// This is a symbol instead of a literal so we don't have to rebuild everything
// when the version number changes
extern const char bfs_version[];
Expand Down
7 changes: 7 additions & 0 deletions src/fsade.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@
# define BFS_USE_XATTR true
#endif

#ifndef BFS_USE_EXTATTR
# define BFS_USE_EXTATTR false
#endif
#ifndef BFS_USE_XATTR
# define BFS_USE_XATTR false
#endif

/**
* Many of the APIs used here don't have *at() variants, but we can try to
* emulate something similar if /proc/self/fd is available.
Expand Down

0 comments on commit eb08ff4

Please sign in to comment.