Browse Source

Separate out arch-independent parts of stdint.h

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
eff8b06eff
2 changed files with 27 additions and 21 deletions
  1. 3
    21
      src/arch/i386/include/bits/stdint.h
  2. 24
    0
      src/include/stdint.h

src/arch/i386/include/stdint.h → src/arch/i386/include/bits/stdint.h View File

@@ -1,5 +1,5 @@
1
-#ifndef STDINT_H
2
-#define STDINT_H
1
+#ifndef _BITS_STDINT_H
2
+#define _BITS_STDINT_H
3 3
 
4 4
 typedef typeof(sizeof(int))	size_t;
5 5
 typedef signed long		ssize_t;
@@ -18,22 +18,4 @@ typedef signed long long	int64_t;
18 18
 typedef unsigned long		physaddr_t;
19 19
 typedef unsigned long		intptr_t;
20 20
 
21
-typedef int8_t s8;
22
-typedef uint8_t u8;
23
-typedef int16_t s16;
24
-typedef uint16_t u16;
25
-typedef int32_t s32;
26
-typedef uint32_t u32;
27
-typedef int64_t s64;
28
-typedef uint64_t u64;
29
-
30
-typedef int8_t int8;
31
-typedef uint8_t uint8;
32
-typedef int16_t int16;
33
-typedef uint16_t uint16;
34
-typedef int32_t int32;
35
-typedef uint32_t uint32;
36
-typedef int64_t int64;
37
-typedef uint64_t uint64;
38
-
39
-#endif /* STDINT_H */
21
+#endif /* _BITS_STDINT_H */

+ 24
- 0
src/include/stdint.h View File

@@ -0,0 +1,24 @@
1
+#ifndef _STDINT_H
2
+#define _STDINT_H
3
+
4
+#include <bits/stdint.h>
5
+
6
+typedef int8_t s8;
7
+typedef uint8_t u8;
8
+typedef int16_t s16;
9
+typedef uint16_t u16;
10
+typedef int32_t s32;
11
+typedef uint32_t u32;
12
+typedef int64_t s64;
13
+typedef uint64_t u64;
14
+
15
+typedef int8_t int8;
16
+typedef uint8_t uint8;
17
+typedef int16_t int16;
18
+typedef uint16_t uint16;
19
+typedef int32_t int32;
20
+typedef uint32_t uint32;
21
+typedef int64_t int64;
22
+typedef uint64_t uint64;
23
+
24
+#endif /* _STDINT_H */

Loading…
Cancel
Save