Commit 2bf6eeb0 authored by Rob Patro's avatar Rob Patro

Changed header guard for format.h

Previously, if spdlog was being used in a project that also uses cppformat, this file (with it's custom namespace) would not be included.  This is because, while the definitions were added to the spdlog namespace, the include guard was left the same as in the actual cppformat library.  This change modifies the include guard by prefixing it with SPDLOG_.
parent e166fade
...@@ -25,8 +25,8 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ...@@ -25,8 +25,8 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef FMT_FORMAT_H_ #ifndef SPDLOG_FMT_FORMAT_H_
#define FMT_FORMAT_H_ #define SPDLOG_FMT_FORMAT_H_
#include <stdint.h> #include <stdint.h>
...@@ -2879,4 +2879,4 @@ FMT_VARIADIC(int, fprintf, std::FILE *, StringRef) ...@@ -2879,4 +2879,4 @@ FMT_VARIADIC(int, fprintf, std::FILE *, StringRef)
# pragma GCC diagnostic pop //pop -Wshadow warnings ignore # pragma GCC diagnostic pop //pop -Wshadow warnings ignore
#endif #endif
#endif // FMT_FORMAT_H_ #endif // SPDLOG_FMT_FORMAT_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment