RESTinio
include_fmtlib.hpp
Go to the documentation of this file.
1 /*
2  * RESTinio
3  */
4 
12 #pragma once
13 
14 // Because fmt can include `windows.h` we should include
15 // Asio's header before fmt.
16 //
17 // Since v.0.6.1
19 
20 #if defined(__GNUG__) || defined(__clang__)
21 
22 #pragma GCC diagnostic push
23 #pragma GCC diagnostic ignored "-Wpedantic"
24 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
25 
26 #if defined(__clang__)
27  #pragma GCC diagnostic ignored "-Wgnu-string-literal-operator-template"
28 #endif
29 
30 #endif
31 
32 #include <fmt/format.h>
33 #include <fmt/ostream.h>
34 #if FMT_VERSION < 60000
35  #include <fmt/time.h>
36 #else
37  #include <fmt/chrono.h>
38 #endif
39 
40 #if defined(__GNUG__) || defined(__clang__)
41 
42 #pragma GCC diagnostic pop
43 
44 #endif
asio_include.hpp