From 251c10fd882038d4b2461bda2f8fc279d856a7cc Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Sat, 20 Feb 2016 13:48:18 -0500 Subject: Only define FUSE_USE_VERSION once --- src/fuse.h | 21 +++++++++++++++++++++ src/operations.cc | 3 +-- src/operations.h | 4 +--- src/scoville.cc | 3 +-- 4 files changed, 24 insertions(+), 7 deletions(-) create mode 100644 src/fuse.h diff --git a/src/fuse.h b/src/fuse.h new file mode 100644 index 0000000..f7d012f --- /dev/null +++ b/src/fuse.h @@ -0,0 +1,21 @@ +// Copyright 2016 Benjamin Barenblat +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy +// of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +#ifndef FUSE_H_ +#define FUSE_H_ + +#define FUSE_USE_VERSION 26 +#include + +#endif // FUSE_H_ diff --git a/src/operations.cc b/src/operations.cc index 326f2a5..021f447 100644 --- a/src/operations.cc +++ b/src/operations.cc @@ -25,13 +25,12 @@ #include #include -#define FUSE_USE_VERSION 26 #include -#include #include #include #include +#include "fuse.h" #include "posix_extras.h" namespace scoville { diff --git a/src/operations.h b/src/operations.h index 9b0f0f1..33e0767 100644 --- a/src/operations.h +++ b/src/operations.h @@ -15,9 +15,7 @@ #ifndef OPERATIONS_H_ #define OPERATIONS_H_ -#define FUSE_USE_VERSION 26 -#include - +#include "fuse.h" #include "posix_extras.h" namespace scoville { diff --git a/src/scoville.cc b/src/scoville.cc index 78a29ae..4cc563d 100644 --- a/src/scoville.cc +++ b/src/scoville.cc @@ -16,12 +16,11 @@ #include -#define FUSE_USE_VERSION 26 #include -#include #include #include +#include "fuse.h" #include "operations.h" #include "posix_extras.h" -- cgit v1.2.3