detect if the compiler supports -fno-builtin and -fno-builtin-vsnprintf. (NicJA)
[AROS.git] / arch / all-pc / acpitool / locale.c
blobf86daa644cb762eb90eb947cac3039fcc953165e
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <exec/types.h>
7 #include <proto/locale.h>
9 #define CATCOMP_ARRAY
10 #include "strings.h"
12 #define CATALOG_NAME "System/Tools/ACPITool.catalog"
13 #define CATALOG_VERSION 2
15 /*** Variables **************************************************************/
16 struct Catalog *catalog;
19 /*** Functions **************************************************************/
20 /* Main *********************************************************************/
21 CONST_STRPTR _(ULONG id)
23 if (LocaleBase != NULL && catalog != NULL)
25 return GetCatalogStr(catalog, id, CatCompArray[id].cca_Str);
27 else
29 return (CONST_STRPTR)CatCompArray[id].cca_Str;
33 /* Setup ********************************************************************/
34 BOOL Locale_Initialize(void)
36 if (LocaleBase != NULL)
38 catalog = OpenCatalog
40 NULL, CATALOG_NAME, OC_Version, CATALOG_VERSION, TAG_DONE
43 else
45 catalog = NULL;
48 return TRUE;
51 void Locale_Deinitialize(void)
53 if(LocaleBase != NULL && catalog != NULL) CloseCatalog(catalog);