<!DOCTYPE html>
<html>
<head>
</head>
<body>
<dl style="line-height: 1.5; margin-left: 2em">
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
<dd style="margin-left: 8.5em">Kouhei Sutou <kou****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2015-01-30 14:55:37 +0900 (Fri, 30 Jan 2015)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
<dd style="margin-left: 8.5em"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9">39a8807f32f4ca7539f205220fa8d30111e72ba9</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
<dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Use localtime_s() on MSVC
GitHub: fix #237
Patch by Susumu Yata. Thanks!!!</pre></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
<dd style="margin-left: 8.5em">
<ul>
<li><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#diff-0">build/ac_macros/check_functions.m4</a></li>
<li><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#diff-1">config.h.cmake</a></li>
<li><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#diff-2">lib/ctx.c</a></li>
</ul>
</dd>
</dl>
<div class="diff-section" style="clear: both">
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: build/ac_macros/check_functions.m4 (+1 -0)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L0L4">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L0L5">5</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L0L6">6</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L0L7">7</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L0L8">8</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L0L9">9</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L0L10">10</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L0R4">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L0R5">5</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L0R6">6</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L0R7">7</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L0R8">8</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L0R9">9</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L0R10">10</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L0R11">11</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -5,6 +5,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">AC_CHECK_FUNCS(_strnicmp)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> AC_CHECK_FUNCS(_strtoui64)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> AC_CHECK_FUNCS(close)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> AC_CHECK_FUNCS(gmtime_r)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+AC_CHECK_FUNCS(localtime_s)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> AC_CHECK_FUNCS(localtime_r)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> AC_CHECK_FUNCS(mkostemp)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> AC_CHECK_FUNCS(open)</span>
</pre>
</td>
</tr>
</tbody>
</table>
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: config.h.cmake (+1 -0)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L1L142">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L1L143">143</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L1L144">144</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L1L145">145</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L1L146">146</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L1L147">147</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L1L148">148</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L1R142">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L1R143">143</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L1R144">144</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L1R145">145</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L1R146">146</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L1R147">147</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L1R148">148</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L1R149">149</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -143,6 +143,7 @@</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #cmakedefine HAVE_FPCLASSIFY</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #cmakedefine HAVE_GMTIME_R</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #cmakedefine HAVE_LOCALTIME_R</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+#cmakedefine HAVE_LOCALTIME_S</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #cmakedefine HAVE_MKOSTEMP</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #cmakedefine HAVE_OPEN</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #cmakedefine HAVE_READ</span>
</pre>
</td>
</tr>
</tbody>
</table>
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: lib/ctx.c (+9 -3)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2L132">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2L133">133</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2L134">134</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2L135">135</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2L136">136</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2L137">137</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2L138">138</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2L139">139</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2L140">140</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2L141">141</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2L142">142</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2L143">143</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2L144">144</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2L145">145</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2L146">146</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R132">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R133">133</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R134">134</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R135">135</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R136">136</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R137">137</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R138">138</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R139">139</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R140">140</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R141">141</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R142">142</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R143">143</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R144">144</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R145">145</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R146">146</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R147">147</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R148">148</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R149">149</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R150">150</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R151">151</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/39a8807f32f4ca7539f205220fa8d30111e72ba9#L2R152">152</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -133,14 +133,20 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">grn_rc</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_timeval2str(grn_ctx *ctx, grn_timeval *tv, char *buf)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> struct tm *ltm;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-#ifdef HAVE_LOCALTIME_R</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+#ifdef HAVE_LOCALTIME_S</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ struct tm tm;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ time_t t = tv->tv_sec;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ ltm = (localtime_s(&tm, &t) == 0) ? &tm : NULL;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+#else /* HAVE_LOCALTIME_S */</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+# ifdef HAVE_LOCALTIME_R</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> struct tm tm;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> time_t t = tv->tv_sec;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> ltm = localtime_r(&t, &tm);</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-#else /* HAVE_LOCALTIME_R */</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+# else /* HAVE_LOCALTIME_R */</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> time_t tvsec = (time_t) tv->tv_sec;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> ltm = localtime(&tvsec);</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-#endif /* HAVE_LOCALTIME_R */</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+# endif /* HAVE_LOCALTIME_R */</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+#endif /* HAVE_LOCALTIME_S */</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if (!ltm) { SERR("localtime"); }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> snprintf(buf, GRN_TIMEVAL_STR_SIZE - 1, GRN_TIMEVAL_STR_FORMAT,</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> ltm->tm_year + 1900, ltm->tm_mon + 1, ltm->tm_mday,</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>