le32-unknown-nacl.cpp [plain text]
#include <stdarg.h>
#include <stddef.h>
extern "C" {
int align_c = __alignof(char);
int align_s = __alignof(short);
int align_i = __alignof(int);
int align_l = __alignof(long);
int align_ll = __alignof(long long);
int align_p = __alignof(void*);
int align_f = __alignof(float);
int align_d = __alignof(double);
int align_ld = __alignof(long double);
int align_vl = __alignof(va_list);
#ifdef __LITTLE_ENDIAN__
void __LITTLE_ENDIAN__defined() {}
#endif
#ifdef __native_client__
void __native_client__defined() {}
#endif
#ifdef __le32__
void __le32__defined() {}
#endif
#ifdef __pnacl__
void __pnacl__defined() {}
#endif
#ifdef unix
void unixdefined() {}
#endif
#ifdef __ELF__
void __ELF__defined() {}
#endif
#ifdef _GNU_SOURCE
void _GNU_SOURCEdefined() {}
#endif
#ifdef _REENTRANT
void _REENTRANTdefined() {}
#else
void _REENTRANTundefined() {}
#endif
char check_char() { return 0; }
short check_short() { return 0; }
int check_int() { return 0; }
long check_long() { return 0; }
long long check_longlong() { return 0; }
unsigned char check_uchar() { return 0; }
unsigned short check_ushort() { return 0; }
unsigned int check_uint() { return 0; }
unsigned long check_ulong() { return 0; }
unsigned long long check_ulonglong() { return 0; }
size_t check_size_t() { return 0; }
float check_float() { return 0; }
double check_double() { return 0; }
long double check_longdouble() { return 0; }
}
template<int> void Switch();
template<> void Switch<4>();
template<> void Switch<8>();
template<> void Switch<16>();
void check_pointer_size() {
Switch<sizeof(void*)>();
Switch<sizeof(long long)>();
Switch<sizeof(va_list)>();
}