Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix building issues in WIN32, remove unnecessary modification. #11356

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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