|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-changelog
[Xen-changelog] Change Mini-OS so that it uses stddef.h to define	size_t
 
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 1a84eec7433193dc7277b7a84930e18d88475486
# Parent  6719dae17b6a21ad207a60f764b6455a46dad86a
Change Mini-OS so that it uses stddef.h to define size_t and
NULL. This problem fixes errors that occur when linking Mini-OS with
ANSI standard code that uses stddef.h.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
diff -r 6719dae17b6a -r 1a84eec74331 extras/mini-os/include/lib.h
--- a/extras/mini-os/include/lib.h      Thu May 04 11:22:19 2006 +0100
+++ b/extras/mini-os/include/lib.h      Thu May 04 11:24:19 2006 +0100
@@ -56,6 +56,7 @@
 #define _LIB_H_
 
 #include <stdarg.h>
+#include <stddef.h>
 #include <console.h>
 
 /* printing */
diff -r 6719dae17b6a -r 1a84eec74331 extras/mini-os/include/os.h
--- a/extras/mini-os/include/os.h       Thu May 04 11:22:19 2006 +0100
+++ b/extras/mini-os/include/os.h       Thu May 04 11:24:19 2006 +0100
@@ -6,9 +6,6 @@
 
 #ifndef _OS_H_
 #define _OS_H_
-
-#define NULL 0
-
 
 #if __GNUC__ == 2 && __GNUC_MINOR__ < 96
 #define __builtin_expect(x, expected_value) (x)
diff -r 6719dae17b6a -r 1a84eec74331 extras/mini-os/include/types.h
--- a/extras/mini-os/include/types.h    Thu May 04 11:22:19 2006 +0100
+++ b/extras/mini-os/include/types.h    Thu May 04 11:24:19 2006 +0100
@@ -34,8 +34,6 @@ typedef unsigned long       u64;
 typedef unsigned long       u64;
 #endif
 
-typedef unsigned int        size_t;
-
 /* FreeBSD compat types */
 typedef unsigned char       u_char;
 typedef unsigned int        u_int;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
 
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread> |  
- [Xen-changelog] Change Mini-OS so that it uses stddef.h to define	size_t and,
Xen patchbot -unstable <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |