freemyipod r940 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r939‎ | r940 | r941 >
Date:12:31, 14 June 2014
Author:theseven
Status:new
Tags:
Comment:
UMSboot: Don't rely on system headers
Modified paths:
  • /umsboot/src/global.h (modified) (history)

Diff [purge]

Index: umsboot/src/global.h
@@ -2,20 +2,22 @@
33 #define __GLOBAL_H__
44
55 #ifndef ASM_FILE
6 -#include <stdint.h>
7 -#include <stddef.h>
8 -#ifndef NULL
 6+typedef unsigned char uint8_t;
 7+typedef signed char int8_t;
 8+typedef unsigned short uint16_t;
 9+typedef signed short int16_t;
 10+typedef unsigned long uint32_t;
 11+typedef signed long int32_t;
 12+typedef unsigned long long uint64_t;
 13+typedef signed long long int64_t;
 14+typedef __SIZE_TYPE__ size_t;
 15+typedef uint32_t uintptr_t;
 16+typedef int32_t intptr_t;
 17+typedef uint8_t bool;
918 #define NULL ((void*)0)
10 -#endif
11 -#ifndef bool
12 -#define bool uint8_t
1319 #define true 1
1420 #define false 0
1521 #endif
16 -#ifndef size_t
17 -#define size_t uint32_t
18 -#endif
19 -#endif
2022
2123 #include "config.h"
2224