BPicture: Fix archive constructor.
[haiku.git] / src / kits / locale / CatalogStub.cpp
blob0e07bbc55199b5fe472b5d646fa213b822c10d52
1 /*
2 * Copyright 2010-2014, Adrien Destugues <pulkomandy@pulkomandy.tk>.
3 * Distributed under the terms of the MIT License.
4 */
7 #include <Catalog.h>
8 #include <LocaleRoster.h>
10 #include <locks.h>
13 static BCatalog sCatalog;
14 static int32 sCatalogInitOnce = INIT_ONCE_UNINITIALIZED;
17 BCatalog*
18 BLocaleRoster::GetCatalog()
20 #if (__GNUC__ < 3)
21 asm volatile(".hidden GetCatalog__13BLocaleRoster");
22 #else
23 asm volatile(".hidden _ZN13BLocaleRoster10GetCatalogEv");
24 #endif
26 return _GetCatalog(&sCatalog, &sCatalogInitOnce);
30 namespace BPrivate{
31 void ForceUnloadCatalog()
33 sCatalogInitOnce = INIT_ONCE_UNINITIALIZED;