Franklin Wei | a855d62 | 2017-01-21 15:18:31 -0500 | [diff] [blame] | 1 | #ifndef _INCLUDE_PLATFORM_DUKE_H_ |
| 2 | #define _INCLUDE_PLATFORM_DUKE_H_ |
| 3 | |
Vencislav Atanasov | 183e45e | 2019-07-28 23:31:50 +0300 | [diff] [blame^] | 4 | #if (defined ROCKBOX) |
Franklin Wei | a855d62 | 2017-01-21 15:18:31 -0500 | [diff] [blame] | 5 | #include "rockbox_compat.h" |
| 6 | #else |
| 7 | #error Define your platform! |
| 8 | #endif |
| 9 | |
| 10 | #if (!defined __EXPORT__) |
| 11 | #define __EXPORT__ |
| 12 | #endif |
| 13 | |
| 14 | uint16_t _swap16(uint16_t D); |
| 15 | unsigned int _swap32(unsigned int D); |
Franklin Wei | a855d62 | 2017-01-21 15:18:31 -0500 | [diff] [blame] | 16 | #define PLATFORM_LITTLEENDIAN 1 |
| 17 | #define BUILDSWAP_INTEL16(x) (x) |
| 18 | #define BUILDSWAP_INTEL32(x) (x) |
Franklin Wei | a855d62 | 2017-01-21 15:18:31 -0500 | [diff] [blame] | 19 | |
| 20 | #endif /* !defined _INCLUDE_PLATFORM_H_ */ |
| 21 | |
| 22 | /* end of platform.h ... */ |
| 23 | |
| 24 | |