Skip to content

Commit

Permalink
Merge pull request #11356 from kindred77/master-fix-build-issue-on-wi…
Browse files Browse the repository at this point in the history
…n32-remove-unnecessary-modification

Fix building issues in WIN32, remove unnecessary modification.
  • Loading branch information
Mytherin committed Mar 28, 2024
2 parents d4c2eca + 4f41240 commit 9b8e5b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ static string StringCompressFunctionName(const LogicalType &result_type) {
}

template <idx_t LENGTH>
static inline void TemplatedReverseMemCpy(const data_ptr_t __restrict &dest, const const_data_ptr_t __restrict &src) {
static inline void TemplatedReverseMemCpy(const data_ptr_t &__restrict dest, const const_data_ptr_t &__restrict src) {
for (idx_t i = 0; i < LENGTH; i++) {
dest[i] = src[LENGTH - 1 - i];
}
}

static inline void ReverseMemCpy(const data_ptr_t __restrict &dest, const const_data_ptr_t __restrict &src,
static inline void ReverseMemCpy(const data_ptr_t &__restrict dest, const const_data_ptr_t &__restrict src,
const idx_t &length) {
for (idx_t i = 0; i < length; i++) {
dest[i] = src[length - 1 - i];
Expand Down
1 change: 1 addition & 0 deletions src/function/scalar/strftime_format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "duckdb/common/types/date.hpp"
#include "duckdb/common/types/time.hpp"
#include "duckdb/common/types/timestamp.hpp"
#include <cctype>

namespace duckdb {

Expand Down
1 change: 1 addition & 0 deletions src/include/duckdb/common/types/string_type.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "duckdb/common/numeric_utils.hpp"

#include <cstring>
#include <algorithm>

namespace duckdb {

Expand Down

0 comments on commit 9b8e5b6

Please sign in to comment.