azure-sdk-for-cpp/sdk
Casey Carter f9d4d36ad8
Defend public headers against inclusion of Windows.h (#1719)
* Defend public headers against inclusion of Windows.h

... which defines some nasty function-like macros `min` and `max` when `_NOMINMAX` isn't defined. We prevent expansion as a function-like macro by inserting some token(s) between `min`/`max` and the following `(`. Most commonly that means wrapping the entire qualified-name in `()` a la `(std::min)(x, y)`, but an explicit template argument list (`std::min<int>(x, y)`) works as well.

* clang-format all the things

* Test coverage

I assume that the `azure-meow-common` headers are fully covered by the tests for the `azure-meow-woof` SDKs.
2021-02-23 09:56:00 -08:00
..
core Defend public headers against inclusion of Windows.h (#1719) 2021-02-23 09:56:00 -08:00
identity Defend public headers against inclusion of Windows.h (#1719) 2021-02-23 09:56:00 -08:00
keyvault Defend public headers against inclusion of Windows.h (#1719) 2021-02-23 09:56:00 -08:00
storage Defend public headers against inclusion of Windows.h (#1719) 2021-02-23 09:56:00 -08:00
template Defend public headers against inclusion of Windows.h (#1719) 2021-02-23 09:56:00 -08:00