Skip to content

Commit d958897

Browse files
committed
Add Windows support.
1 parent 7722730 commit d958897

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

config.w32

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
// $Id$
22
// vim:ft=javascript
33

4-
// If your extension references something external, use ARG_WITH
5-
// ARG_WITH("jwt", "for jwt support", "no");
6-
7-
// Otherwise, use ARG_ENABLE
8-
// ARG_ENABLE("jwt", "enable jwt support", "no");
4+
ARG_WITH("openssl", "OpenSSL support", "no,shared");
95

106
if (PHP_JWT != "no") {
11-
EXTENSION("jwt", "jwt.c", PHP_EXTNAME_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
12-
}
7+
var ret = SETUP_OPENSSL("openssl", PHP_OPENSSL);
138

9+
if (ret > 0) {
10+
EXTENSION("jwt", "jwt.c openssl.c", PHP_EXTNAME_SHARED);
11+
}
12+
}

0 commit comments

Comments
 (0)