Skip to content

Commit 8441a74

Browse files
committed
Add config.w32 for building on Windows
1 parent ea95574 commit 8441a74

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

ext/config.w32

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// vim:ft=javascript
2+
3+
ARG_WITH("maxminddb", "Enable MaxMind DB Reader extension support", "no");
4+
5+
if (PHP_MAXMINDDB == "yes") {
6+
if (CHECK_HEADER_ADD_INCLUDE("maxminddb.h", "CFLAGS_MAXMINDDB", PHP_MAXMINDDB + ";" + PHP_PHP_BUILD + "\\include\\maxminddb") &&
7+
CHECK_LIB("libmaxminddb.lib", "maxminddb", PHP_MAXMINDDB)) {
8+
EXTENSION("maxminddb", "maxminddb.c");
9+
} else {
10+
WARNING('Could not find maxminddb.h or maxminddb lib; skipping');
11+
}
12+
}

0 commit comments

Comments
 (0)