ext/duckdb/extconf.rb in duckdb-0.6.1 vs ext/duckdb/extconf.rb in duckdb-0.7.0

- old
+ new

@@ -1,9 +1,9 @@ require 'mkmf' def duckdb_library_available?(func) header = find_header('duckdb.h') || find_header('duckdb.h', '/opt/homebrew/include') - library = have_func('duckdb', func) || find_library('duckdb', func, '/opt/homebrew/opt/duckdb/lib') + library = have_func(func, 'duckdb.h') || find_library('duckdb', func, '/opt/homebrew/opt/duckdb/lib') header && library end def check_duckdb_library(func, version) return if duckdb_library_available?(func)