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