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_.
This commit is contained in:
Rob Patro 2014-12-10 16:06:15 -05:00
parent e166fadeb9
commit 2bf6eeb0db
1 changed files with 3 additions and 3 deletions

View File

@ -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.
*/
#ifndef FMT_FORMAT_H_
#define FMT_FORMAT_H_
#ifndef SPDLOG_FMT_FORMAT_H_
#define SPDLOG_FMT_FORMAT_H_
#include <stdint.h>
@ -2879,4 +2879,4 @@ FMT_VARIADIC(int, fprintf, std::FILE *, StringRef)
# pragma GCC diagnostic pop //pop -Wshadow warnings ignore
#endif
#endif // FMT_FORMAT_H_
#endif // SPDLOG_FMT_FORMAT_H_