forked from fmtlib/fmt
Add an error on broken includes
This commit is contained in:
@ -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 @@
|
|||||||
#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 @@
|
|||||||
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_
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user