From 1539aca3d8011f5f112da24367e5f675b5b97081 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 6 Apr 2017 21:08:55 -0400 Subject: [PATCH] use compiler's preprocessor rather than cpp explicitly --- tools/cppfind | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/cppfind b/tools/cppfind index bac073eb..10fd9385 100755 --- a/tools/cppfind +++ b/tools/cppfind @@ -1,7 +1,8 @@ #!/bin/sh +CXX="${CXX:-c++}" FUSE_CFLAGS="$(pkg-config --cflags fuse) -DFUSE_USE_VERSION=29" -echo "#include " | cpp ${FUSE_CFLAGS} | grep "${1}" > /dev/null +echo "#include " | ${CXX} -E ${FUSE_CFLAGS} - | grep "${1}" > /dev/null [ "$?" != "0" ]; echo $?