8000 Next try to fix MSVC · arangodb/arangodb@528c4c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 528c4c7

Browse files
committed
Next try to fix MSVC
1 parent 44a88b1 commit 528c4c7

File tree

1 file changed

+9
-0
lines changed
  • 3rdParty/date/include/date

1 file changed

+9
-0
lines changed

3rdParty/date/include/date/date.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
// been invented (that would involve another several millennia of evolution).
3131
// We did not mean to shout.
3232

33+
#ifdef _MSC_VER
34+
#define real_cplusplus __cplusplus
35+
#define __cplusplus 199711L
36+
#endif
37+
3338
#ifndef HAS_STRING_VIEW
3439
# if __cplusplus >= 201703
3540
# define HAS_STRING_VIEW 1
@@ -8006,5 +8011,9 @@ operator<<(std::basic_ostream<CharT, Traits>& os,
80068011
# pragma GCC diagnostic pop
80078012
#endif
80088013

8014+
#ifdef _MSC_VER
8015+
#define __cplusplus real_cplusplus
8016+
#undef real_cplusplus
8017+
#endif
80098018

80108019
#endif // DATE_H

0 commit comments

Comments
 (0)
0