Commit c3817046 authored by Victor Zverovich's avatar Victor Zverovich

Add an error on broken includes

parent 16bdd842
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#ifndef FMT_FORMAT_H_ #ifndef FMT_FORMAT_H_
#define FMT_FORMAT_H_ #define FMT_FORMAT_H_
#define FMT_INCLUDE
#include <cassert> #include <cassert>
#include <clocale> #include <clocale>
#include <cmath> #include <cmath>
...@@ -39,6 +40,7 @@ ...@@ -39,6 +40,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include <utility> // for std::pair #include <utility> // for std::pair
#undef FMT_INCLUDE
// The fmt library version in the form major * 10000 + minor * 100 + patch. // The fmt library version in the form major * 10000 + minor * 100 + patch.
#define FMT_VERSION 40000 #define FMT_VERSION 40000
......
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
For the license information refer to format.h. 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_ #ifndef FMT_STRING_H_
#define FMT_STRING_H_ #define FMT_STRING_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