__curl_rule_01__ is declared as an array with negative size
I added arm64 support in my app's build settings, now I get this error in curlrules.h.Here is the error code:
typedef char
__curl_rule_01__
[CurlchkszEQ(long, CURL_SIZEOF_LONG)]; //where the error occurs
Well obviously you need to make sure what CURL_SIZEOF_LONG
is defined as sizeof(long)
(or the equivalent of an integer literal, perhaps 8
) wherever it is defined. You are probably trying a #include
header that still thinks you are on 32 bit ARM.
The negative-sized array trick is a very common modeling trick static_assert
in C and C ++ - until 2011. Look in the source code for a definition CurlchkszEQ
if you want to know how it works in this particular case.