xref: /haiku/src/kits/locale/CatalogStub.cpp (revision 922e7ba1f3228e6f28db69b0ded8f86eb32dea17)
1 /*
2  * Copyright 2010, Adrien Destugues <pulkomandy@pulkomandy.ath.cx>.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 
7 #include <Catalog.h>
8 #include <LocaleRoster.h>
9 
10 
11 static BCatalog sCatalog;
12 static vint32 sCatalogInitOnce = false;
13 
14 
15 BCatalog*
16 BLocaleRoster::GetCatalog()
17 {
18 	#if (__GNUC__ < 3)
19 		asm volatile(".hidden GetCatalog__13BLocaleRoster");
20 	#else
21 		asm volatile(".hidden _ZN13BLocaleRoster10GetCatalogEv");
22 	#endif
23 
24 	return _GetCatalog(&sCatalog, &sCatalogInitOnce);
25 }
26 
27 
28 namespace BPrivate{
29 	void ForceUnloadCatalog()
30 	{
31 		sCatalogInitOnce = false;
32 	}
33 }
34 
35