Skip to content

Commit

Permalink
Worked around error C2129: static function 'errno_t gmtime_s(tm *cons…
Browse files Browse the repository at this point in the history
  • Loading branch information
matt77hias committed Apr 7, 2024
1 parent 96bd924 commit c5ffedf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/fmt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,16 @@ module;
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
// DIVERGENCE END
// DIVERGENCE BEGIN - Worked around error C2129: static function '...' declared but not defined
#define static
// DIVERGENCE END
// DIVERGENCE BEGIN - Worked around std imports and includes mixing
#include <time.h>
// DIVERGENCE END
// DIVERGENCE BEGIN - Worked around error C2129: static function '...' declared but not defined
#undef static
// DIVERGENCE END

#if __has_include(<cxxabi.h>)
# include <cxxabi.h>
Expand Down

0 comments on commit c5ffedf

Please sign in to comment.