ObjFW  Check-in [15a5433649]

Overview
Comment:Include stdint.h in OFMacros.h.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 15a5433649685bd4e83022b69bd6deb15e1c725cfbca5fee8040cec18525daca
User & Date: js on 2009-07-23 15:39:27
Other Links: manifest | tags
Context
2009-07-24
22:44
RTLD_LAZY makes more sense, as we only need a few symbols looked up. check-in: e549c515e0 user: js tags: trunk
2009-07-23
15:39
Include stdint.h in OFMacros.h. check-in: 15a5433649 user: js tags: trunk
2009-07-21
23:25
Add -[readLineWithEncoding:] to read in the specified encoding. check-in: 9d93300b4e user: js tags: trunk
Changes

Modified src/OFMacros.h from [6d59233a09] to [9f9852ff63].

16
17
18
19
20
21
22


23
24
25
26
27
28
29
#else
#define OF_INLINE inline
#define OF_LIKELY(cond) cond
#define OF_UNLIKELY(cond) cond
#endif

#if defined(OF_BIG_ENDIAN)


static OF_INLINE void
OF_BSWAP_V(uint8_t *buf, size_t len)
{
	uint32_t t;

	while (len--) {
		t = (uint32_t)((uint32_t)buf[3] << 8 | buf[2]) << 16 |







>
>







16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#else
#define OF_INLINE inline
#define OF_LIKELY(cond) cond
#define OF_UNLIKELY(cond) cond
#endif

#if defined(OF_BIG_ENDIAN)
#include <stdint.h>

static OF_INLINE void
OF_BSWAP_V(uint8_t *buf, size_t len)
{
	uint32_t t;

	while (len--) {
		t = (uint32_t)((uint32_t)buf[3] << 8 | buf[2]) << 16 |