Nice one Julien !
LWM2M_EMBEDDED_MODE macros were added by Toby Jaffey[1] so we can use custom malloc(), free() and gettimeofday() on non-POSIX platforms.
Regards,
David Navarro
[1]
https://github.com/01org/liblwm2m/commit/e5150579a953a12b995bd49c71a050b2cd141bdb
From: wakaama-dev-bounces@xxxxxxxxxxx [mailto:wakaama-dev-bounces@xxxxxxxxxxx]
On Behalf Of Julien Vermillard
Sent: Monday, 15 September, 2014 11:04
To: Wakaama developer discussions
Subject: [wakaama-dev] Running Wakaama on MBED
* sys/time.h is time.h on mbed
* mbed is C++ (wonder why again..) so I needed to 'extern "C"' the liblwm2m.h include
maybe we could do it in the liblwm2m.h (#ifdef _cplusplus ..)
* LWM2M_EMBEDDED_MODE macro, what's the purpose?
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris,
92196 Meudon Cedex, France
Registration Number: 302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
|