Fix stupid logic bug in last version
authorKen Raeburn <raeburn@mit.edu>
Tue, 15 Sep 2009 19:28:31 +0000 (19:28 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 15 Sep 2009 19:28:31 +0000 (19:28 +0000)
ticket: 6565

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22766 dc483132-0cff-0310-8789-dd5450dbe970

src/include/k5-platform.h

index 8266b3b4e57d9d3bcbd67caee1858f6a744f9a29..ef5dd419be878b2b4c084c202970410246bfbd2f 100644 (file)
@@ -466,9 +466,9 @@ typedef struct { int error; unsigned char did_run; } k5_init_t;
 # define K5_BE
 #elif defined(_LITTLE_ENDIAN)
 # define K5_LE
-#elif defined(__BIG_ENDIAN__) || !defined(__LITTLE_ENDIAN__)
+#elif defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__)
 # define K5_BE
-#elif defined(__LITTLE_ENDIAN__) || !defined(__BIG_ENDIAN__)
+#elif defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__)
 # define K5_LE
 #endif
 #if !defined(K5_BE) && !defined(K5_LE)