From 922abf129949cf23a3df107b49d249dd9565838e Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sun, 6 Aug 2017 00:30:27 -0400 Subject: [PATCH] Protect from Oracle sun macro --- date.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/date.h b/date.h index c092859..f76005e 100644 --- a/date.h +++ b/date.h @@ -106,6 +106,11 @@ namespace date # define NOEXCEPT noexcept #endif +// Protect from Oracle sun macro +#ifdef sun +# undef sun +#endif + //-----------+ // Interface | //-----------+