Skip to content

Commit

Permalink
Disable transitive includes
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Jan 6, 2024
1 parent f73388f commit ae9b0b5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
#ifndef FMT_FORMAT_H_
#define FMT_FORMAT_H_

#ifndef _LIBCPP_REMOVE_TRANSITIVE_INCLUDES
# define _LIBCPP_REMOVE_TRANSITIVE_INCLUDES
# define FMT_REMOVE_TRANSITIVE_INCLUDES
#endif

#include <cmath> // std::signbit
#include <cstdint> // uint32_t
#include <cstring> // std::memcpy
Expand Down Expand Up @@ -4498,4 +4503,9 @@ FMT_END_NAMESPACE
# define FMT_FUNC
#endif

// Restore _LIBCPP_REMOVE_TRANSITIVE_INCLUDES.
#ifdef FMT_REMOVE_TRANSITIVE_INCLUDES
# undef _LIBCPP_REMOVE_TRANSITIVE_INCLUDES
#endif

#endif // FMT_FORMAT_H_

0 comments on commit ae9b0b5

Please sign in to comment.