sizeof unsigned-int is 4 on all of the platforms that we're using. What makes you think we want it to be 2 bytes?
On Thu, 2015-09-17 at 16:39 +0000, 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 > _______________________________________________ > iotivity-dev mailing list > iotivity-dev at lists.iotivity.org > https://lists.iotivity.org/mailman/listinfo/iotivity-dev
