diff options
author | Neal H. Walfield <neal@gnu.org> | 2008-12-10 20:28:18 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@gnu.org> | 2008-12-10 20:28:18 +0100 |
commit | 54b1dbf6e5e6f3d738e4418d4add334b84f14e0e (patch) | |
tree | 109c55ac722052b626dec6ef73fa35e382a26c18 /hurd | |
parent | 5bed3f1024e35f85a27763dd99bed0e3186c3fb0 (diff) |
Use #ifdef i386, not #if i386.
2008-12-10 Neal H. Walfield <neal@gnu.org>
* stddef.h: When checking if compiling for i386, check if i386 is
defined, not if it is true.
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/ChangeLog | 5 | ||||
-rw-r--r-- | hurd/stddef.h | 18 |
2 files changed, 14 insertions, 9 deletions
diff --git a/hurd/ChangeLog b/hurd/ChangeLog index 42b4e3c..7d15920 100644 --- a/hurd/ChangeLog +++ b/hurd/ChangeLog @@ -1,3 +1,8 @@ +2008-12-10 Neal H. Walfield <neal@gnu.org> + + * stddef.h: When checking if compiling for i386, check if i386 is + defined, not if it is true. + 2008-12-05 Neal H. Walfield <neal@gnu.org> * addr.h (PTR_TO_PAGE): Define. diff --git a/hurd/stddef.h b/hurd/stddef.h index 8b289ab..824f60d 100644 --- a/hurd/stddef.h +++ b/hurd/stddef.h @@ -5,17 +5,17 @@ This file is part of the GNU Hurd. GNU Hurd is free software: you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as - published by the Free Software Foundation, either version 3 of the - License, or (at your option) any later version. + under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. GNU Hurd is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. + General Public License for more details. - You should have received a copy of the GNU Lesser General Public - License along with GNU Hurd. If not, see + You should have received a copy of the GNU General Public License + along with GNU Hurd. If not, see <http://www.gnu.org/licenses/>. */ #ifndef _HURD_STDDEF_H @@ -83,8 +83,8 @@ extern int output_debug; extern int S_PRINTF (const char *, ...); \ do_debug (level) \ S_PRINTF ("%s (%x):%s:%d: " fmt "\n", \ - program_name, l4_myself (), __func__, __LINE__, \ - ##__VA_ARGS__); \ + program_name, l4_myself (), __func__, __LINE__, \ + ##__VA_ARGS__); \ } \ while (0) @@ -101,7 +101,7 @@ extern void __attribute__ ((__noreturn__, format (printf, 3, 4))) /* XXX: We define these here as they are useful macros, everyone uses them and everyone includes this header file. We should put them somewhere else. */ -#if i386 +#ifdef i386 #define PAGESIZE 0x1000 #define PAGESIZE_LOG2 12 #else |