| 83 | template unsigned long long MakeBigEndianNative(unsigned long long); |
| 84 | |
| 85 | BOOL |
| 86 | IsBigEndianMachine() |
| 87 | { |
| 88 | const unsigned int a = 1; |
| 89 | |
| 90 | const unsigned char *p = (const unsigned char *)&a; |
| 91 | |
| 92 | return !p[0]; |
| 93 | } |
| 94 | |
| 95 | const char * |
| 96 | unicode_to_utf8(const WCHAR *unicode_str, char *buf, int buflen) |