diff options
Diffstat (limited to 'src/mscorlib/corefx/System/Globalization/CultureInfo.Windows.cs')
-rw-r--r-- | src/mscorlib/corefx/System/Globalization/CultureInfo.Windows.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mscorlib/corefx/System/Globalization/CultureInfo.Windows.cs b/src/mscorlib/corefx/System/Globalization/CultureInfo.Windows.cs index 16c8a06e08..c019eb2ceb 100644 --- a/src/mscorlib/corefx/System/Globalization/CultureInfo.Windows.cs +++ b/src/mscorlib/corefx/System/Globalization/CultureInfo.Windows.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#if ENABLE_WINRT using Internal.Runtime.Augments; +#endif namespace System.Globalization { @@ -16,16 +18,18 @@ namespace System.Globalization /// </remarks> private static CultureInfo GetUserDefaultCultureCacheOverride() { +#if ENABLE_WINRT WinRTInteropCallbacks callbacks = WinRTInterop.UnsafeCallbacks; if (callbacks != null && callbacks.IsAppxModel()) { return (CultureInfo)callbacks.GetUserDefaultCulture(); } +#endif return null; } - private static CultureInfo GetUserDefaultCulture() + internal static CultureInfo GetUserDefaultCulture() { const uint LOCALE_SNAME = 0x0000005c; const string LOCALE_NAME_USER_DEFAULT = null; |