File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -230,11 +230,11 @@ namespace osmium {
230
230
#ifndef NDEBUG
231
231
auto result =
232
232
#endif
233
- #ifndef _MSC_VER
234
- gmtime_r (&sse, &tm );
233
+ #ifndef _WIN32
234
+ gmtime_r (&sse, &tm );
235
235
assert (result != nullptr );
236
236
#else
237
- gmtime_s (&tm , &sse);
237
+ gmtime_s (&tm , &sse);
238
238
assert (result == 0 );
239
239
#endif
240
240
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ namespace osmium {
174
174
* @throws std::system_error If ftruncate(2) call failed
175
175
*/
176
176
inline void resize_file (int fd, std::size_t new_size) {
177
- #ifdef _WIN32
177
+ #ifdef _MSC_VER
178
178
detail::disable_invalid_parameter_handler diph;
179
179
// https://msdn.microsoft.com/en-us/library/whx354w1.aspx
180
180
if (::_chsize_s (fd, static_cast_with_assert<__int64>(new_size)) != 0 ) {
Original file line number Diff line number Diff line change @@ -146,8 +146,8 @@ namespace osmium {
146
146
147
147
#ifdef _WIN32
148
148
HANDLE get_handle () const noexcept ;
149
- HANDLE osmium::util::MemoryMapping:: create_file_mapping () const noexcept ;
150
- void * osmium::util::MemoryMapping:: map_view_of_file () const noexcept ;
149
+ HANDLE create_file_mapping () const noexcept ;
150
+ void * map_view_of_file () const noexcept ;
151
151
#endif
152
152
153
153
int resize_fd (int fd) {
You can’t perform that action at this time.
0 commit comments