Added missing properties.
[tangerine.git] / workbench / locale / countries / makecountry / countryprefs.c
blobe45ea411ee7ff832f77d679192a4647107a08819
1 /*
2 Copyright © 2008, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: makecountry code that needs access to AROS structures and types
6 Lang: english
7 */
9 #include <exec/types.h>
10 #include <prefs/locale.h>
12 #define EC(x)\
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
30 to.
32 EC(cp->cp_CountryCode);
33 EC(cp->cp_TelephoneCode);
34 #endif