# Zend compile problem on Win32

- Thread: https://externals.io/message/27190
- Original archive: https://news-web.php.net/php.internals/27190
- Started by Frank M. Kromann on 2006-12-23T03:10:15+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #27190 — Frank M. Kromann — 2006-12-23T03:10:15+00:00

URL: https://externals.io/message/27190#27190

Hello Everyone,

Here is a patch for PHP6 that allows the jason extension to be compiled as
a shared object on win32.

- Frank

Index: zend_strtol.c
===================================================================
RCS file: /repository/ZendEngine2/zend_strtol.c,v
retrieving revision 1.4
diff -u -r1.4 zend_strtol.c
--- zend_strtol.c	7 Dec 2006 18:56:25 -0000	1.4
+++ zend_strtol.c	23 Dec 2006 03:04:01 -0000
@@ -31,6 +31,7 @@
  * SUCH DAMAGE.
  */
 
+#include "zend.h"
 #include <limits.h>
 #include <ctype.h>
 #include <errno.h>
@@ -44,7 +45,7 @@
  *
  * Ignores `locale' stuff.
  */
-long
+ZEND_API long
 zend_u_strtol(nptr, endptr, base)
 	const UChar *nptr;
 	UChar **endptr;
