octoblu/alljoyn — pull request #4 by ooeygui (2014-12-09 19:02:26+00:00)
Title: Fix Windows build

This change fixes the Windows build of the Alljoyn npm.

NOTE:
* This change does not include notifications. They have a dependency on pthreads which, well, is a head scratcher.

This change has been verified on Windows 8.1 and Mac OS Yosemite.
Changes:
* Refactored the bindings.gyp to enable the Windows build. I'm looking for suggestions to optimize the duplication of sources between Mac and Linux. I couldn't find syntax for sharing gyp blocks.
* Fixed some warnings which manifest on Windows (although not all, there are tons. Some are really interesting too...)
* Added header where required to support std features on Windows.

Questions:
* I'm unclear why mapping.h includes the FP_* defines. They conflict with Windows headers. I commented them out for now.
* Is there any prohibition of using C++11 constructs in Alljoyn? To replace pthreads, I was going to reimplement the Async queue using C++11 thread class.

Feedback appreciated.