I am trying to compile PHP on my Mac OS X 10.8 and I am getting the following problem:
In file included from /Users/ryan/Downloads/php-5.4.5/ext/phar/util.c:23:
ext/phar/phar_internal.h:223:19: error: invalid token at start of a preprocessor
expression
# if SIZEOF_SHORT == 2
^
I’m not sure why this error is occurring as this looks fine to me. I have opened the header file and could make changes if not or remove the if all together as I know what my system should be, but I was wondering if this is the proper approach to this problem.
It looks like
SIZEOF_SHORTexpands to no tokens. You should investigate whereSIZEOF_SHORTis being#defined (this may be on the command line via-DSIZEOF_SHORT=) and fix that to provide the right value.Alternatively, you could use this: