Small bug in HttpClient.cpp for Mac OS X port

Hi guys!

I just found small bug in HttpClient.cpp in Extensions folder in Cocos2D-X 2.1 beta 3

On Mac OS X platform there should be set CC_ASYNC_HTTPREQUEST_USE_NAMED_SEMAPHORE to 1 just like in case of iOs platform.

So please change

#if CC_TARGET_PLATFORM CC_PLATFORM_IOS
#define CC_ASYNC_HTTPREQUEST_USE_NAMED_SEMAPHORE 1
#else
#define CC_ASYNC_HTTPREQUEST_USE_NAMED_SEMAPHORE 0
#endif

to

#if CC_TARGET_PLATFORM CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC
#define CC_ASYNC_HTTPREQUEST_USE_NAMED_SEMAPHORE 1
#else
#define CC_ASYNC_HTTPREQUEST_USE_NAMED_SEMAPHORE 0
#endif

and Mac will have Http support ;)
Best regards and keep up the good work ;
)

Hey, thanks for the heads up, I just ran into this bug and found your fix. also == is missing :slight_smile: