tvl-depot/absl/base
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
..
internal UWP doesn't allow reading regkeys (#594) 2020-03-09 08:55:40 -04:00
attributes.h Export of internal Abseil changes 2020-02-25 13:12:47 -05:00
bit_cast_test.cc Export of internal Abseil changes 2019-12-10 15:07:05 -05:00
BUILD.bazel Export of internal Abseil changes 2020-02-25 13:12:47 -05:00
call_once.h Export of internal Abseil changes 2019-12-10 15:07:05 -05:00
call_once_test.cc Export of internal Abseil changes 2019-12-10 15:07:05 -05:00
casts.h Export of internal Abseil changes 2019-12-10 15:07:05 -05:00
CMakeLists.txt Export of internal Abseil changes 2020-02-25 13:12:47 -05:00
config.h Export of internal Abseil changes 2020-02-13 13:56:56 -05:00
config_test.cc Changed HTTP URLs to HTTPS where possible (#270) 2019-03-08 10:27:53 -05:00
const_init.h Export of internal Abseil changes 2019-12-10 15:07:05 -05:00
dynamic_annotations.cc Changed HTTP URLs to HTTPS where possible (#270) 2019-03-08 10:27:53 -05:00
dynamic_annotations.h Export of internal Abseil changes. 2019-04-12 15:05:20 -04:00
exception_safety_testing_test.cc Export of internal Abseil changes 2020-02-21 15:56:04 -05:00
inline_variable_test.cc Export of internal Abseil changes 2019-12-10 15:07:05 -05:00
inline_variable_test_a.cc Export of internal Abseil changes 2019-12-10 15:07:05 -05:00
inline_variable_test_b.cc Export of internal Abseil changes 2019-12-10 15:07:05 -05:00
invoke_test.cc Export of internal Abseil changes 2019-12-10 15:07:05 -05:00
log_severity.cc Export of internal Abseil changes 2019-12-10 15:07:05 -05:00
log_severity.h Export of internal Abseil changes 2019-12-19 15:40:56 -05:00
log_severity_test.cc Export of internal Abseil changes 2020-03-03 17:32:55 -05:00
macros.h Use https links. (#586) 2020-01-13 14:12:06 -05:00
optimization.h Export of internal Abseil changes 2019-10-24 10:29:13 -04:00
options.h Export of internal Abseil changes 2020-02-21 15:56:04 -05:00
policy_checks.h Export of internal Abseil changes 2019-11-13 15:04:44 -05:00
port.h Changed HTTP URLs to HTTPS where possible (#270) 2019-03-08 10:27:53 -05:00
raw_logging_test.cc Changed HTTP URLs to HTTPS where possible (#270) 2019-03-08 10:27:53 -05:00
spinlock_test_common.cc Export of internal Abseil changes 2019-12-10 15:07:05 -05:00
thread_annotations.h Export of internal Abseil changes 2019-12-10 15:07:05 -05:00
throw_delegate_test.cc Export of internal Abseil changes 2019-08-30 15:38:01 -04:00