Chameleon

Chameleon Svn Source Tree

Root/branches/meklort/i386/modules/include/klibc/stathelp.h

Source at commit 660 created 13 years 4 months ago.
By meklort, Added includes dir for modules (c++ includes only at the moment, may ad klibc includes later on). Includes path is now included for modules
1/*
2 * stathelp.h
3 *
4 * Helper macros for <klibc/archstat.h>
5 */
6
7#ifndef _KLIBC_STATHELP_H
8#define _KLIBC_STATHELP_H
9
10#include <klibc/endian.h>
11
12/*
13 * Most architectures have a 64-bit field for st_dev and st_rdev,
14 * but dev_t is 32 bits (uint32_t == unsigned int), so make a
15 * macro we can use across all architectures.
16 */
17
18#if __BYTE_ORDER == __BIG_ENDIAN
19# define __stdev64(x)unsigned int __##x, x;
20#else
21# define __stdev64(x)unsigned int x, __##x;
22#endif
23
24#endif/* _KLIBC_STATHELP_H */
25

Archive Download this file

Revision: 660