mergerfs/tools/cppfind

9 lines
213 B
Plaintext
Raw Normal View History

2015-08-07 01:11:17 +08:00
#!/bin/sh
2014-11-05 02:42:20 +08:00
CXX="${CXX:-c++}"
FUSE_CFLAGS="-Ilibfuse/include -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=29"
2014-11-05 02:42:20 +08:00
echo "#include <fuse.h>" | ${CXX} -E ${FUSE_CFLAGS} - | grep "${1}" > /dev/null
2014-11-05 02:42:20 +08:00
[ "$?" != "0" ]; echo $?