summaryrefslogtreecommitdiff
path: root/time64.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-09-04 08:21:57 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-09-04 09:39:45 -0400
commitd584a308cab484ee23984026d264bd447d452018 (patch)
tree172a93d9d03fbcd103fe41bf0fd42b92d71a5bb7 /time64.c
parent10c25cd94120c0e509e5ce54480c24d08281e090 (diff)
downloadperl-d584a308cab484ee23984026d264bd447d452018.tar.gz
Some <termios.h> #define WRAP, undef it.
Diffstat (limited to 'time64.c')
-rw-r--r--time64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/time64.c b/time64.c
index 74914bdcf7..b7ced91739 100644
--- a/time64.c
+++ b/time64.c
@@ -88,6 +88,7 @@ static const char dow_year_start[SOLAR_CYCLE_LENGTH] = {
#define CHEAT_YEARS 108
#define IS_LEAP(n) ((!(((n) + 1900) % 400) || (!(((n) + 1900) % 4) && (((n) + 1900) % 100))) != 0)
+#undef WRAP /* some <termios.h> define this */
#define WRAP(a,b,m) ((a) = ((a) < 0 ) ? ((b)--, (a) + (m)) : (a))
#ifdef USE_SYSTEM_LOCALTIME