#include <stdio.h>
#include <stdlib.h>
#pragma pack(4) //default value
#if defined(ANDROID2_0)
#pragma message("android-2.0") //only VS surpose
#define VERSION "android 2.0"
#elif defined(ANDROID4_0)
#pragma message("android-4.0")
#define VERSION "android 4.0"
#else
#warning No VERSION information...
#error VERSION Not Find...
#endif
struct t
{
char c1; // char :1 pack:4; addr 0
short s; // short:2 pack:4; addr 2
char c2; // char :1 pack:4; addr 4
int i; // int :4 pack:4; addr 8
};
int main()
{
printf("%s\n",VERSION);
struct t t1;
printf("%d\n",sizeof(t1));
return 0;
}