On Thursday 17 September 2015 16:39:08 Mohammed Javid via iotivity-dev wrote:
>  Hi,
> I am trying to port the c sdk stack onto windows. I noticed that the
> coap_hdr_t structure is not portable as it has unsigned int data type,
> which on windows (VC compiler) is 4 bytes, where in reality we want it to
> be 2 bytes. I changed it to uint16_t and it works. I would like to get the
> opinions of others. Thanks,Javid

Hi Jawid

I also ran the exercise of trying to compile on Windows and noticed there's a 
lot of bad assumptions in the code. In particular, libcoap's hardcoded config.h 
does not apply on Windows, causing a lot of build issues. Once the config.h is 
fixed, libcoap builds fine.

Let me clean up the patches and submit them.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Reply via email to