summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-04-21 23:52:43 -0400
committerJeffrey Walton <noloader@gmail.com>2017-04-21 23:52:43 -0400
commit8ded8bc38d2f50956806dee147281c0819d73507 (patch)
treee8caa271032b4a77fcd9c08585b5a10cdfa1672b /config.h
parent1249ac16ebd98377d896c55cb2b4f9f9dfa22d27 (diff)
downloadcryptopp-git-8ded8bc38d2f50956806dee147281c0819d73507.tar.gz
Clear SunCC anachronism warning "Attempt to redefine IS_BIG_ENDIAN without using #undef"
Diffstat (limited to 'config.h')
-rw-r--r--config.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.h b/config.h
index cfdb6410..de93eadb 100644
--- a/config.h
+++ b/config.h
@@ -9,13 +9,13 @@
// ***************** Important Settings ********************
// define this if running on a big-endian CPU
-#if !defined(IS_LITTLE_ENDIAN) && (defined(__BIG_ENDIAN__) || (defined(__s390__) || defined(__s390x__) || defined(__zarch__)) || (defined(__m68k__) || defined(__MC68K__)) || defined(__sparc) || defined(__sparc__) || defined(__hppa__) || defined(__MIPSEB__) || defined(__ARMEB__) || (defined(__MWERKS__) && !defined(__INTEL__)))
+#if !defined(IS_LITTLE_ENDIAN) && !defined(IS_BIG_ENDIAN) && (defined(__BIG_ENDIAN__) || (defined(__s390__) || defined(__s390x__) || defined(__zarch__)) || (defined(__m68k__) || defined(__MC68K__)) || defined(__sparc) || defined(__sparc__) || defined(__hppa__) || defined(__MIPSEB__) || defined(__ARMEB__) || (defined(__MWERKS__) && !defined(__INTEL__)))
# define IS_BIG_ENDIAN
#endif
// define this if running on a little-endian CPU
// big endian will be assumed if IS_LITTLE_ENDIAN is not defined
-#ifndef IS_BIG_ENDIAN
+#if !defined(IS_BIG_ENDIAN) && !defined(IS_LITTLE_ENDIAN)
# define IS_LITTLE_ENDIAN
#endif