diff --git a/include/pgduckdb/pgduckdb_types.hpp b/include/pgduckdb/pgduckdb_types.hpp index 088752bc..97028a46 100644 --- a/include/pgduckdb/pgduckdb_types.hpp +++ b/include/pgduckdb/pgduckdb_types.hpp @@ -1,5 +1,6 @@ #pragma once +#include "duckdb/common/types/data_chunk.hpp" #include "pgduckdb/pg/declarations.hpp" #include "pgduckdb/utility/cpp_only_file.hpp" // Must be last include. diff --git a/include/pgduckdb/utility/cpp_wrapper.hpp b/include/pgduckdb/utility/cpp_wrapper.hpp index 40a0b947..10c5b009 100644 --- a/include/pgduckdb/utility/cpp_wrapper.hpp +++ b/include/pgduckdb/utility/cpp_wrapper.hpp @@ -30,7 +30,7 @@ __CPPFunctionGuard__(const char *func_name, FuncArgs... args) { } -#define InvokeCPPFunc(FUNC, ...) pgduckdb::__CPPFunctionGuard__(__FUNCTION__, __VA_ARGS__) +#define InvokeCPPFunc(FUNC, ...) pgduckdb::__CPPFunctionGuard__(__FUNCTION__, ##__VA_ARGS__) // Wrappers