Skip to content
Success

Changes

Summary

  1. Don't define _INTEGRAL_MAX_BITS macro (#9686) (commit: d107fed) (details)
Commit d107fedd13600a6db05f18e85f3a94a81645a112 by noreply
Don't define _INTEGRAL_MAX_BITS macro (#9686)

VS2019 throws the following warning [1] about the _INTEGRAL_MAX_BITS
[2] macro:

    stat.c(33): error C2220: the following warning is treated as an error
    stat.c(33): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored

The doc reads:

> _INTEGRAL_MAX_BITS Defined as the integer literal value 64, the
> maximum size (in bits) for a non-vector integral type. This macro is
> always defined.

Apparently, it became a predefined macro in Visual Studio 2005.

This commit simply removes the macro definition.

[1]: https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4117
[2]: https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2019
(commit: d107fed)
The file was modifiedotherlibs/win32unix/stat.c (diff)