Subversion Repositories freemyipod

Rev

Rev 60 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 60 Rev 71
Line 22... Line 22...
22
 
22
 
23
 
23
 
24
#ifndef __GLOBAL_H__
24
#ifndef __GLOBAL_H__
25
#define __GLOBAL_H__
25
#define __GLOBAL_H__
26
 
26
 
27
#ifndef ASM_FILE
-
 
28
#include <stdint.h>
-
 
29
#include <stddef.h>
-
 
30
#include <stdbool.h>
-
 
31
typedef int32_t ssize_t;
-
 
32
typedef int32_t mode_t;
-
 
33
typedef int32_t off_t;
-
 
34
#endif
-
 
35
 
-
 
36
#include "build/version.h"
-
 
37
 
27
 
38
#define ICODE_ATTR __attribute__((section(".icode")))
28
#define ICODE_ATTR __attribute__((section(".icode")))
39
#define ICONST_ATTR __attribute__((section(".irodata")))
29
#define ICONST_ATTR __attribute__((section(".irodata")))
40
#define IDATA_ATTR __attribute__((section(".idata")))
30
#define IDATA_ATTR __attribute__((section(".idata")))
41
#define IBSS_ATTR __attribute__((section(".ibss")))
31
#define IBSS_ATTR __attribute__((section(".ibss")))
Line 43... Line 33...
43
#define INITCONST_ATTR __attribute__((section(".initrodata")))
33
#define INITCONST_ATTR __attribute__((section(".initrodata")))
44
#define INITDATA_ATTR __attribute__((section(".initdata")))
34
#define INITDATA_ATTR __attribute__((section(".initdata")))
45
#define INITBSS_ATTR __attribute__((section(".initbss")))
35
#define INITBSS_ATTR __attribute__((section(".initbss")))
46
#define STACK_ATTR __attribute__((section(".stack")))
36
#define STACK_ATTR __attribute__((section(".stack")))
47
 
37
 
-
 
38
#ifndef ASM_FILE
-
 
39
#include "errno.h"
-
 
40
#include "inttypes.h"
-
 
41
#include "math.h"
-
 
42
#include "stdint.h"
-
 
43
#include "stdlib.h"
-
 
44
#include "string.h"
-
 
45
#include "sys/types.h"
-
 
46
typedef int bool;
-
 
47
#define true 1
-
 
48
#define false 0
-
 
49
#endif
-
 
50
 
-
 
51
#include "build/version.h"
48
#include "configmagic.h"
52
#include "configmagic.h"
49
#include "debug.h"
53
#include "debug.h"
50
 
54
 
51
 
55
 
52
#endif
56
#endif