Skip to content

Commit

Permalink
Fix redefinition errors with latest MSVC compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulat committed Nov 17, 2023
1 parent 92800a2 commit b06b80c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wxdata/source/scwx/awips/coded_time_motion_location.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Prevent redefinition of __cpp_lib_format
#if defined(_MSC_VER)
# include <yvals_core.h>
#endif

// Enable chrono formatters
#ifndef __cpp_lib_format
# define __cpp_lib_format 202110L
Expand Down
5 changes: 5 additions & 0 deletions wxdata/source/scwx/awips/pvtec.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Prevent redefinition of __cpp_lib_format
#if defined(_MSC_VER)
# include <yvals_core.h>
#endif

// Enable chrono formatters
#ifndef __cpp_lib_format
# define __cpp_lib_format 202110L
Expand Down
5 changes: 5 additions & 0 deletions wxdata/source/scwx/gr/placefile.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Prevent redefinition of __cpp_lib_format
#if defined(_MSC_VER)
# include <yvals_core.h>
#endif

// Enable chrono formatters
#ifndef __cpp_lib_format
# define __cpp_lib_format 202110L
Expand Down
5 changes: 5 additions & 0 deletions wxdata/source/scwx/util/time.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Prevent redefinition of __cpp_lib_format
#if defined(_MSC_VER)
# include <yvals_core.h>
#endif

// Enable chrono formatters
#ifndef __cpp_lib_format
# define __cpp_lib_format 202110L
Expand Down

0 comments on commit b06b80c

Please sign in to comment.