diff options
author | DJ Delorie <dj@delorie.com> | 2009-08-13 17:03:55 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2009-08-13 17:03:55 +0000 |
commit | d7fb0f9994ed73f8b9b09e0324033e4fd1549582 (patch) | |
tree | 636e8bd6e13d6bf43ac802e9b5e77d23f2ff92ae /libdecnumber/decContext.c | |
parent | 82648c0411ee11b4ba5446997e202bcb682fd369 (diff) | |
download | gdb-d7fb0f9994ed73f8b9b09e0324033e4fd1549582.tar.gz |
merge from gcc
Diffstat (limited to 'libdecnumber/decContext.c')
-rw-r--r-- | libdecnumber/decContext.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libdecnumber/decContext.c b/libdecnumber/decContext.c index 28bbdbb4929..1756dcb2522 100644 --- a/libdecnumber/decContext.c +++ b/libdecnumber/decContext.c @@ -31,7 +31,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see /* ------------------------------------------------------------------ */ #include <string.h> /* for strcmp */ +#ifdef DECCHECK #include <stdio.h> /* for printf if DECCHECK */ +#endif #include "dconfig.h" /* for GCC definitions */ #include "decContext.h" /* context and base types */ #include "decNumberLocal.h" /* decNumber local types, etc. */ @@ -395,8 +397,10 @@ Int decContextTestEndian(Flag quiet) { if (!quiet) { if (LITEND) adj="little"; else adj="big"; +#if DECCHECK printf("Warning: DECLITEND is set to %d, but this computer appears to be %s-endian\n", DECLITEND, adj); +#endif } res=(Int)LITEND-dle; } |