diff options
| author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-29 05:00:44 +0000 |
|---|---|---|
| committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-29 05:00:44 +0000 |
| commit | 03d429ed8a1fb3268f1c1346842f5bf0aaea14fe (patch) | |
| tree | 1f002dd3cbcf4150910c3281c946bb7ea8dd8add /include | |
| parent | 1daa46157fff62bc06a1b1f1ea301509b0cb0ccc (diff) | |
| download | busybox-w32-03d429ed8a1fb3268f1c1346842f5bf0aaea14fe.tar.gz busybox-w32-03d429ed8a1fb3268f1c1346842f5bf0aaea14fe.tar.bz2 busybox-w32-03d429ed8a1fb3268f1c1346842f5bf0aaea14fe.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.
git-svn-id: svn://busybox.net/trunk/busybox@15212 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
| -rw-r--r-- | include/platform.h | 16 |
1 files changed, 4 insertions, 12 deletions
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 */ |
