]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
C compilers are compliant enough that stdint.h can be used for integer types now.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Fri, 27 May 2011 21:56:36 +0000 (23:56 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Fri, 27 May 2011 21:56:36 +0000 (23:56 +0200)
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
arch/m68k/generic/defines/types.h
libs4c/cmdproc/cmd_io.c
libs4c/cmdproc/cmd_proc.c
libs4c/misc/utils.c

index e2d8c7b97261726af22505cae3073454c7e7c010..8049f02f150d10bf75787e14b5fc2c50dc62471c 100644 (file)
@@ -1,63 +1 @@
-#ifndef _M68K_TYPES_H
-#define _M68K_TYPES_H
-
-typedef unsigned short umode_t;
-
-/*
- * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
- * header files exported to user space
- */
-
-typedef __signed__ char __s8;
-typedef unsigned char __u8;
-
-typedef __signed__ short __s16;
-typedef unsigned short __u16;
-
-typedef __signed__ int __s32;
-typedef unsigned int __u32;
-
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
-typedef __signed__ long long __s64;
-typedef unsigned long long __u64;
-#endif
-
-#ifndef __BIT_TYPES_DEFINED__
-#define __BIT_TYPES_DEFINED__
-
-typedef __u8  uint8_t;
-typedef __s8  int8_t;
-typedef __u16 uint16_t;
-typedef __s16 int16_t;
-typedef __u32 uint32_t;
-typedef __s32 int32_t;
-
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
-typedef __s64 int64_t;
-typedef __u64 uint64_t;
-#endif
-
-#endif /* !(__BIT_TYPES_DEFINED__) */
-
-/*
- * These aren't exported outside the kernel to avoid name space clashes
- */
-#ifdef __KERNEL__
-
-typedef signed char s8;
-typedef unsigned char u8;
-
-typedef signed short s16;
-typedef unsigned short u16;
-
-typedef signed int s32;
-typedef unsigned int u32;
-
-typedef signed long long s64;
-typedef unsigned long long u64;
-
-#define BITS_PER_LONG 32
-
-#endif /* __KERNEL__ */
-
-#endif /* _M68K_TYPES_H */
+#include <inttypes.h>
index 39c02cb4c3824c79fb4a3fe4f1007ae4a1edf6f8..fe9f7ceae537f80053457d73b731e5d46b501ef3 100644 (file)
@@ -1,6 +1,6 @@
 #include <cmd_proc.h>
 #include <string.h>
-#include <inttypes.h>
+#include <stdint.h>
 
 /** 
  * Blocking call to print a string.
index 86cfbe2e0b8b5ae5668ddfba78fb156ea1b05162..c6de7e924da331a926cdff43b8d330ec1917f5ab 100644 (file)
@@ -18,7 +18,7 @@
    - other license provided by project originators
  *******************************************************************/
 
-#include <inttypes.h>
+#include <stdint.h>
 #include <ctype.h>
 #include <string.h>
 #include <stdlib.h>
index 07e452d40a674e966d04c0a392d8547a11f8bc36..f27c35cada1d55dd4a95979432ed5e5535c9bfb2 100644 (file)
@@ -9,7 +9,7 @@
 
  *******************************************************************/
 
-#include <inttypes.h>
+#include <stdint.h>
 //#include <system_def.h>
 #include <string.h>
 #include <stdio.h>