Skip to content

Commit

Permalink
Define NOMINMAX ahead of windows.h
Browse files Browse the repository at this point in the history
  • Loading branch information
plecong committed Aug 5, 2021
1 parent 565329c commit 34327eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions src/execution/operator/helper/physical_load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
#ifndef _WIN32
#include <dlfcn.h>
#else
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>

#define RTLD_LAZY 0
Expand Down
18 changes: 9 additions & 9 deletions tools/nodejs/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@
]
},
], # OS=="win"
], # conditions# uncomment this to build against existing lib
# "libraries": [
# "/Users/hannes/source/duckdb/build/release/src/libduckdb_static.a",
# "/Users/hannes/source/duckdb/build/release/third_party/fmt/libfmt.a",
# "/Users/hannes/source/duckdb/build/release/third_party/libpg_query/libpg_query.a",
# "/Users/hannes/source/duckdb/build/release/third_party/utf8proc/libutf8proc.a",
# "/Users/hannes/source/duckdb/build/release/third_party/re2/libduckdb_re2.a"
#
# ]
], # conditions
# uncomment this to build against existing lib
# "libraries": [
# "/Users/hannes/source/duckdb/build/release/src/libduckdb_static.a",
# "/Users/hannes/source/duckdb/build/release/third_party/fmt/libfmt.a",
# "/Users/hannes/source/duckdb/build/release/third_party/libpg_query/libpg_query.a",
# "/Users/hannes/source/duckdb/build/release/third_party/utf8proc/libutf8proc.a",
# "/Users/hannes/source/duckdb/build/release/third_party/re2/libduckdb_re2.a"
# ]
},
{
"target_name": "action_after_build",
Expand Down

0 comments on commit 34327eb

Please sign in to comment.