Latest compatible version of Classicube from the original GitHub repository (https://github.com/ClassiCube/ClassiCube) that can be compiled on Classicube for PowerMac PPC running Mac OS X 10.4.
This commit is contained in:
52
third_party/dsiwifi/include/lwip/arch/cc.h
vendored
Normal file
52
third_party/dsiwifi/include/lwip/arch/cc.h
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
#ifndef __ARCH_CC_H__
|
||||
#define __ARCH_CC_H__
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
// printf
|
||||
#include "wifi_debug.h"
|
||||
|
||||
//#define BYTE_ORDER LITTLE_ENDIAN
|
||||
|
||||
typedef uint8_t u8_t;
|
||||
typedef int8_t s8_t;
|
||||
typedef uint16_t u16_t;
|
||||
typedef int16_t s16_t;
|
||||
typedef uint32_t u32_t;
|
||||
typedef int32_t s32_t;
|
||||
|
||||
typedef uintptr_t mem_ptr_t;
|
||||
|
||||
#define LWIP_ERR_T int
|
||||
|
||||
/* Define (sn)printf formatters for these lwIP types */
|
||||
#define U16_F "hu"
|
||||
#define S16_F "hd"
|
||||
#define X16_F "hx"
|
||||
#define U32_F "u"
|
||||
#define S32_F "d"
|
||||
#define X32_F "x"
|
||||
|
||||
/* Compiler hints for packing structures */
|
||||
#define PACK_STRUCT_FIELD(x) x
|
||||
#define PACK_STRUCT_STRUCT __attribute__((packed))
|
||||
#define PACK_STRUCT_BEGIN
|
||||
#define PACK_STRUCT_END
|
||||
|
||||
#define LWIP_RAND() ((u32_t)rand())
|
||||
|
||||
/* Plaform specific diagnostic output */
|
||||
#define LWIP_PLATFORM_DIAG(x) do { \
|
||||
wifi_printf x; \
|
||||
} while (0)
|
||||
|
||||
#define LWIP_PLATFORM_ASSERT(x) do { \
|
||||
wifi_printf("Assert \"%s\" failed at line %d in %s\n", \
|
||||
x, __LINE__, __FILE__); \
|
||||
} while (0)
|
||||
|
||||
#endif /* __ARCH_CC_H__ */
|
||||
Reference in New Issue
Block a user