Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: Source/wtf/DateMath.cpp

Issue 22084002: Eliminate HAVE(ERRNO_H) guard. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix author Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/wtf/FastMalloc.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999-2000 Harri Porten (porten@kde.org) 2 * Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Google Inc. All rights reserved. 4 * Copyright (C) 2009 Google Inc. All rights reserved.
5 * Copyright (C) 2007-2009 Torch Mobile, Inc. 5 * Copyright (C) 2007-2009 Torch Mobile, Inc.
6 * Copyright (C) 2010 &yet, LLC. (nate@andyet.net) 6 * Copyright (C) 2010 &yet, LLC. (nate@andyet.net)
7 * 7 *
8 * The Original Code is Mozilla Communicator client code, released 8 * The Original Code is Mozilla Communicator client code, released
9 * March 31, 1998. 9 * March 31, 1998.
10 * 10 *
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 #include <limits.h> 83 #include <limits.h>
84 #include <limits> 84 #include <limits>
85 #include <stdint.h> 85 #include <stdint.h>
86 #include <time.h> 86 #include <time.h>
87 #include "wtf/text/StringBuilder.h" 87 #include "wtf/text/StringBuilder.h"
88 88
89 #if OS(WINDOWS) 89 #if OS(WINDOWS)
90 #include <windows.h> 90 #include <windows.h>
91 #endif 91 #endif
92 92
93 #if HAVE(ERRNO_H)
94 #include <errno.h>
95 #endif
96
97 #if HAVE(SYS_TIME_H) 93 #if HAVE(SYS_TIME_H)
98 #include <sys/time.h> 94 #include <sys/time.h>
99 #endif 95 #endif
100 96
101 #if HAVE(SYS_TIMEB_H) 97 #if HAVE(SYS_TIMEB_H)
102 #include <sys/timeb.h> 98 #include <sys/timeb.h>
103 #endif 99 #endif
104 100
105 using namespace WTF; 101 using namespace WTF;
106 102
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
1086 1082
1087 stringBuilder.append(utcOffset > 0 ? '+' : '-'); 1083 stringBuilder.append(utcOffset > 0 ? '+' : '-');
1088 int absoluteUTCOffset = abs(utcOffset); 1084 int absoluteUTCOffset = abs(utcOffset);
1089 stringBuilder.append(twoDigitStringFromNumber(absoluteUTCOffset / 60)); 1085 stringBuilder.append(twoDigitStringFromNumber(absoluteUTCOffset / 60));
1090 stringBuilder.append(twoDigitStringFromNumber(absoluteUTCOffset % 60)); 1086 stringBuilder.append(twoDigitStringFromNumber(absoluteUTCOffset % 60));
1091 1087
1092 return stringBuilder.toString(); 1088 return stringBuilder.toString();
1093 } 1089 }
1094 1090
1095 } // namespace WTF 1091 } // namespace WTF
OLDNEW
« no previous file with comments | « no previous file | Source/wtf/FastMalloc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698