Hi

2010/9/1 Andrey Hristov <and...@php.net>:
> andrey                                   Wed, 01 Sep 2010 16:54:20 +0000
>
> Revision: http://svn.php.net/viewvc?view=revision&revision=302980
>
> Log:
> fix build on windows, seems this macro is not defined
>

Wouldn't it be easier to just define SIZEOF_CHAR_P to 4 in
config.w32.h.in as it default is?

Something like:
size_t sizeof_ptr(char *ptr)
{
        return sizeof(ptr);
}

and test like:
char test = "Something something";
size_t test_size = sizeof_ptr(test);

Guess it could be done better or staticlly :)

-- 
regards,

Kalle Sommer Nielsen
ka...@php.net

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to