Fix compile on ppc.

This commit is contained in:
Steve Checkoway
2007-01-24 09:25:12 +00:00
parent d97acea856
commit 8b2c07f4be
2 changed files with 5 additions and 1 deletions
@@ -80,8 +80,10 @@ LTC_EXPORT int LTC_CALL XSTRCMP(const char *s1, const char *s2);
#endif
/* detect PPC32 */
#if !defined(__STRICT_ANSI__) && defined(LTC_PPC32)
#if !defined(__STRICT_ANSI__) && (defined(LTC_PPC32) || defined(__ppc__))
#if !defined(ENDIAN_BIG) // SM
#define ENDIAN_BIG
#endif
#define ENDIAN_32BITWORD
#define LTC_FAST
#define LTC_FAST_TYPE unsigned long
@@ -496,11 +496,13 @@ int der_printable_char_encode(int c);
int der_printable_value_decode(int v);
/* UTF-8 */
#ifndef _BSD_WCHAR_T_DEFINED_
#if (defined(SIZE_MAX) || __STDC_VERSION__ >= 199901L || defined(WCHAR_MAX) || defined(_WCHAR_T) || defined(_WCHAR_T_DEFINED)) && !defined(LTC_NO_WCHAR)
#include <wchar.h>
#else
typedef ulong32 wchar_t;
#endif
#endif
int der_encode_utf8_string(const wchar_t *in, unsigned long inlen,
unsigned char *out, unsigned long *outlen);