Commit c3817046 authored by Victor Zverovich's avatar Victor Zverovich

Add an error on broken includes

parent 16bdd842
......@@ -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
......
......@@ -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_
......
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