| 123456789101112131415161718192021222324252627282930313233343536 |
- // defines.h :
- //
- #if !defined(AGD_DEFINES_H__696CD137_18F3_4D4B_BB90_9D540DD8DF8A__INCLUDED_)
- #define AGD_DEFINES_H__696CD137_18F3_4D4B_BB90_9D540DD8DF8A__INCLUDED_
- #ifdef __cplusplus
- extern "C" {
- #endif // __cplusplus
- /////////////////////////////////////////////////////////////////////////////
- // defines.h - Declarations:
- #ifndef __BYTE_ORDER__
- #define __ORDER_LITTLE_ENDIAN__ 1234
- #define __ORDER_BIG_ENDIAN__ 4321
- #define __ORDER_PDP_ENDIAN__ 3412
- #if defined(__little_endian__)
- #define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
- #elif defined(__big_endian__)
- #define __BYTE_ORDER__ __ORDER_BIG_ENDIAN__
- #else
- #error No endianess defined!
- #endif // __LITTLE_ENDIAN__
- #endif // __BYTE_ORDER__
- /////////////////////////////////////////////////////////////////////////////
- #define _countof(a) (sizeof(a) / sizeof(*a))
- /////////////////////////////////////////////////////////////////////////////
- #ifdef __cplusplus
- }
- #endif // __cplusplus
- #endif // !defined(AGD_DEFINES_H__696CD137_18F3_4D4B_BB90_9D540DD8DF8A__INCLUDED_)
|