Add an error on broken includes

This commit is contained in:
Victor Zverovich 2017-07-01 10:09:25 -07:00
parent 16bdd8424f
commit c38170461d
2 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,7 @@
#ifndef FMT_FORMAT_H_
#define FMT_FORMAT_H_
#define FMT_INCLUDE
#include <cassert>
#include <clocale>
#include <cmath>
@ -39,6 +40,7 @@
#include <string>
#include <vector>
#include <utility> // for std::pair
#undef FMT_INCLUDE
// The fmt library version in the form major * 10000 + minor * 100 + patch.
#define FMT_VERSION 40000

View File

@ -7,6 +7,10 @@
For the license information refer to format.h.
*/
#ifdef FMT_INCLUDE
# error Add the fmt's parent directory and not fmt itself to includes.
#endif
#ifndef FMT_STRING_H_
#define FMT_STRING_H_