"PECL Announce" in php.pecl.dev (1 Feb 2015 20:13:00 -0000):
>- PHP7 compatibility

To make this compile with PHP7 I had to add __STDC_CONSTANT_MACROS in
php_xmldiff.h

 #define __STDC_LIMIT_MACROS 1
+#define __STDC_CONSTANT_MACROS 1
 
 #include "php.h"
 #include "php_ini.h"

Otherwise I am getting all undefined errors for INT32_C, UINT64_C and
the like.

This is with libxml2-2.9.2, in case that makes any difference:
https://phpdev.toolsforresearch.com/php-7.0.0-dev-Win32-VC11-x86.htm

Jan
-- 
C:\php-sdk\php70dev>nmake php_xmldiff.dll

Microsoft (R) Program Maintenance Utility Version 11.00.61030.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        "cl.exe" /I "ext\xmldiff\diffmark\lib" /DHAVE_XDOC_HH=1 /I
"C:\php-sdk\win32build\include" /DHAVE_LIBXML_PARSER_H=1 /D
COMPILE_DL_XMLDIFF /D XMLDIFF_EXPORTS=1 /I diffmark/lib /EHsc /D
ZEND_WIN32_FORCE_INLINE /nologo /I . /I main /I Zend /I TSRM /I ext /D
_WINDOWS /D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /W3 /FD
/wd4996 /D_USE_32BIT_TIME_T=1 /MP /Zi /LD /MD /W3 /Ox /D NDebug /D
NDEBUG /D ZEND_WIN32_FORCE_INLINE /GF /D ZEND_DEBUG=0 /I
"C:\php-sdk\win32build\include" /D FD_SETSIZE=256 /I "..\zlib"
/FoC:\php-sdk\php70dev\Release\ext\xmldiff\
/FpC:\php-sdk\php70dev\Release\ext\xmldiff\
/FRC:\php-sdk\php70dev\Release\ext\xmldiff\
/FdC:\php-sdk\php70dev\Release\ext\xmldiff\ /c ext\xmldiff\xmldiff.cpp
xmldiff.cpp
c:\php-sdk\php70dev\zend\zend_string.h(97) : error C3861: 'INT32_C':
identifier not found
c:\php-sdk\php70dev\zend\zend_string.h(115) : error C3861: 'INT32_C':
identifier not found
c:\php-sdk\php70dev\zend\zend_string.h(165) : error C3861: 'INT32_C':
identifier not found
c:\php-sdk\php70dev\zend\zend_string.h(184) : error C3861: 'INT32_C':
identifier not found
c:\php-sdk\php70dev\zend\zend_string.h(258) : error C3861: 'UINT32_C':
identifier not found

c:\php-sdk\php70dev\zend\zend_multiply.h(257) : error C3861: 'UINT64_C':
identifier not fou
nd
c:\php-sdk\php70dev\zend\zend_arena.h(38) : error C3861: 'INT32_C':
identifier not found
c:\php-sdk\php70dev\zend\zend_arena.h(60) : error C3861: 'INT32_C':
identifier not found
c:\php-sdk\php70dev\zend\zend_arena.h(66) : error C3861: 'INT32_C':
identifier not found
c:\php-sdk\php70dev\zend\zend_arena.h(67) : error C3861: 'INT32_C':
identifier not found
c:\php-sdk\php70dev\zend\zend_arena.h(71) : error C3861: 'INT32_C':
identifier not found
c:\php-sdk\php70dev\zend\zend_arena.h(72) : error C3861: 'INT32_C':
identifier not found
c:\php-sdk\php70dev\zend\zend_execute.h(162) : error C3861: 'INT32_C':
identifier not found

c:\php-sdk\php70dev\zend\zend_execute.h(181) : error C3861: 'INT32_C':
identifier not found

c:\php-sdk\php70dev\zend\zend_execute.h(195) : error C3861: 'INT32_C':
identifier not found

c:\php-sdk\php70dev\zend\zend_execute.h(208) : error C3861: 'INT32_C':
identifier not found

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 11.0\VC\BIN\cl.exe"' : return code '0x2'
Stop.

-- 
PECL development discussion Mailing List (http://pecl.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to