aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-05-29 05:00:44 +0000
committerRob Landley <rob@landley.net>2006-05-29 05:00:44 +0000
commit15d20a03d6e1c995fa8b80542568f5db4091f734 (patch)
tree1f002dd3cbcf4150910c3281c946bb7ea8dd8add
parent8394729ddfb2d340877e83be9c1f13ee59fc2557 (diff)
downloadbusybox-w32-15d20a03d6e1c995fa8b80542568f5db4091f734.tar.gz
busybox-w32-15d20a03d6e1c995fa8b80542568f5db4091f734.tar.bz2
busybox-w32-15d20a03d6e1c995fa8b80542568f5db4091f734.zip
Remove _() and N_() from platform.h. #define them as NOP macros in the two
files still using them. I didn't remove them from e2fsck.c to avoid stomping pending cleanup patches from Garrett, and I didn't bother to remove them from fdisk.c because that entire file needs to be rewritten from scratch.
-rw-r--r--e2fsprogs/e2fsck.c3
-rw-r--r--include/platform.h16
-rw-r--r--util-linux/fdisk.c2
3 files changed, 9 insertions, 12 deletions
diff --git a/e2fsprogs/e2fsck.c b/e2fsprogs/e2fsck.c
index 6f3fd7eda..ceafaea4b 100644
--- a/e2fsprogs/e2fsck.c
+++ b/e2fsprogs/e2fsck.c
@@ -39,6 +39,9 @@
39 39
40#include "e2fsck.h" /*Put all of our defines here to clean things up*/ 40#include "e2fsck.h" /*Put all of our defines here to clean things up*/
41 41
42#define _(x) x
43#define N_(x) x
44
42/* 45/*
43 * Procedure declarations 46 * Procedure declarations
44 */ 47 */
diff --git a/include/platform.h b/include/platform.h
index b77d815f8..d684c2dda 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -97,18 +97,16 @@
97#endif 97#endif
98 98
99/* ---- Endian Detection ------------------------------------ */ 99/* ---- Endian Detection ------------------------------------ */
100#if !defined __APPLE__ && !(defined __digital__ && defined __unix__)
101# include <byteswap.h>
102# include <endian.h>
103#endif
104 100
105#if (defined __digital__ && defined __unix__) 101#if (defined __digital__ && defined __unix__)
106# include <sex.h> 102# include <sex.h>
107# define __BIG_ENDIAN__ (BYTE_ORDER == BIG_ENDIAN) 103# define __BIG_ENDIAN__ (BYTE_ORDER == BIG_ENDIAN)
108# define __BYTE_ORDER BYTE_ORDER 104# define __BYTE_ORDER BYTE_ORDER
105#elif !defined __APPLE__
106# include <byteswap.h>
107# include <endian.h>
109#endif 108#endif
110 109
111
112#ifdef __BIG_ENDIAN__ 110#ifdef __BIG_ENDIAN__
113# define BB_BIG_ENDIAN 1 111# define BB_BIG_ENDIAN 1
114# define BB_LITTLE_ENDIAN 0 112# define BB_LITTLE_ENDIAN 0
@@ -188,13 +186,7 @@ typedef unsigned long long int uintmax_t;
188#define PRIu32 "u" 186#define PRIu32 "u"
189#endif 187#endif
190 188
191 189// Need to implement fdprintf for platforms that haven't got dprintf.
192/* NLS stuff */
193/* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */
194#define _(Text) Text
195#define N_(Text) (Text)
196
197/* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */
198#define fdprintf dprintf 190#define fdprintf dprintf
199 191
200/* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */ 192/* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 8ceeb4835..26ec2e363 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -10,6 +10,8 @@
10#define UTIL_LINUX_VERSION "2.12" 10#define UTIL_LINUX_VERSION "2.12"
11 11
12 12
13#define _(x) x
14
13#define PROC_PARTITIONS "/proc/partitions" 15#define PROC_PARTITIONS "/proc/partitions"
14 16
15#include <features.h> 17#include <features.h>