2 Copyright © 2008, The AROS Development Team. All rights reserved.
5 Desc: makecountry code that needs access to AROS structures and types
9 #include <exec/types.h>
10 #include <prefs/locale.h>
14 (x) = (((x) & 0xFF000000) >> 24)\
15 | (((x) & 0x00FF0000) >> 8)\
16 | (((x) & 0x0000FF00) << 8)\
17 | (((x) & 0x000000FF) << 24);\
20 unsigned long getCountryPrefsSize()
22 return sizeof(struct CountryPrefs
);
25 void convertEndianness(struct CountryPrefs
*cp
)
27 #if (AROS_BIG_ENDIAN == 0)
28 /* We have to convert the endianness of this data,
29 thankfully there are only two fields which this applies
32 EC(cp
->cp_CountryCode
);
33 EC(cp
->cp_TelephoneCode
);