tvl-depot/absl
Augusto Righetto 417ea99cba
UWP doesn't allow reading regkeys (#594)
* UWP doesn't allow reading regkeys.

Unfortunately, UWP also doesn't offer an API for returning nominal processor frequency at this moment. Other options would require apps depending on abseil-cpp to be packaged with extra manifest data or libraries for bridging platforms.

This change pushes the unsupported APIs accessing the registry behind a define guard. This define guard makes GetNominalCPUFrequency to compile and run as usual on desktop, but it will return the value 1.0 on UWP Apps (Store).

* Using WINAPI_FAMILY_PARTITION family of macros for detecting when building for
UWP or Desktop.

* Simplifying comment to please the lint tool.
2020-03-09 08:55:40 -04:00
..
algorithm Export of internal Abseil changes 2019-12-12 15:37:13 -05:00
base UWP doesn't allow reading regkeys (#594) 2020-03-09 08:55:40 -04:00
container Export of internal Abseil changes 2020-03-03 17:32:55 -05:00
copts Export of internal Abseil changes 2020-01-28 16:07:41 -05:00
debugging Export of internal Abseil changes 2020-03-03 17:32:55 -05:00
flags Export of internal Abseil changes 2020-03-03 17:32:55 -05:00
functional Export of internal Abseil changes 2020-02-21 15:56:04 -05:00
hash Export of internal Abseil changes 2020-03-03 17:32:55 -05:00
memory Export of internal Abseil changes 2020-02-21 15:56:04 -05:00
meta Export of internal Abseil changes 2019-12-12 15:37:13 -05:00
numeric Export of internal Abseil changes 2020-01-28 16:07:41 -05:00
random Export of internal Abseil changes 2020-03-03 17:32:55 -05:00
status Export of internal Abseil changes 2020-03-06 15:14:07 -05:00
strings Export of internal Abseil changes 2020-03-05 20:52:21 +00:00
synchronization Export of internal Abseil changes 2020-02-21 15:56:04 -05:00
time Export of internal Abseil changes 2020-02-14 12:54:19 -05:00
types Export of internal Abseil changes 2020-03-05 20:52:21 +00:00
utility Export of internal Abseil changes 2019-12-12 15:37:13 -05:00
abseil.podspec.gen.py Export of internal Abseil changes 2020-02-13 13:56:56 -05:00
BUILD.bazel Export of internal Abseil changes 2019-10-16 10:42:51 -04:00
CMakeLists.txt Export of internal Abseil changes 2020-02-25 13:12:47 -05:00
compiler_config_setting.bzl Export of internal Abseil changes. 2019-03-19 14:19:10 -04:00