Skip to content

Commit

Permalink
feat: enable building with gcc 4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
hotwatermorning committed Nov 2, 2023
1 parent 9009a96 commit 1ca3f28
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/fmt/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
#include <cstdio>
#include <system_error> // std::system_error

#if (defined __APPLE__ || defined(__FreeBSD__)) && __has_include(<xlocale.h>)
# include <xlocale.h> // for LC_NUMERIC_MASK on OS X
#if defined __APPLE__ || defined(__FreeBSD__)
# if (__cplusplus < 201703L) || __has_include(<xlocale.h>)
# include <xlocale.h> // for LC_NUMERIC_MASK on OS X
# endif
#endif

#include "format.h"
Expand Down

0 comments on commit 1ca3f28

Please sign in to comment.