Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/include move the include sys/types.h xor stdboo...



details:   https://anonhg.NetBSD.org/src/rev/117940d8b17d
branches:  trunk
changeset: 764171:117940d8b17d
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Apr 13 06:29:30 2011 +0000

description:
move the include sys/types.h xor stdbool.h to the top of the file,
so that "bool" will be present when used later in the file.

diffstat:

 sys/arch/x86/include/cpu.h |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (35 lines):

diff -r 42c6a378cef3 -r 117940d8b17d sys/arch/x86/include/cpu.h
--- a/sys/arch/x86/include/cpu.h        Wed Apr 13 04:57:10 2011 +0000
+++ b/sys/arch/x86/include/cpu.h        Wed Apr 13 06:29:30 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.31 2011/02/24 15:42:17 jruoho Exp $  */
+/*     $NetBSD: cpu.h,v 1.32 2011/04/13 06:29:30 mrg Exp $     */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -37,6 +37,12 @@
 #ifndef _X86_CPU_H_
 #define _X86_CPU_H_
 
+#if defined(_KERNEL) || defined(_STANDALONE)
+#include <sys/types.h>
+#else
+#include <stdbool.h>
+#endif /* _KERNEL || _STANDALONE */
+
 #if defined(_KERNEL) || defined(_KMEMUSER)
 #if defined(_KERNEL_OPT)
 #include "opt_xen.h"
@@ -435,12 +441,6 @@
 
 #endif /* _KERNEL || __KMEMUSER */
 
-#if defined(_KERNEL) || defined(_STANDALONE)
-#include <sys/types.h>
-#else
-#include <stdbool.h>
-#endif /* _KERNEL || _STANDALONE */
-
 /*
  * CTL_MACHDEP definitions.
  */



Home | Main Index | Thread Index | Old Index