[GRASS-git] [OSGeo/grass] 70d015: msvc: Add aliases S_IRUSR and S_IWUSR for _S_IREAD...
Edouard Choinière
noreply at github.com
Sun Jun 29 18:00:31 PDT 2025
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 70d0159a2164170427312f0a801eeab30a0bce16
https://github.com/OSGeo/grass/commit/70d0159a2164170427312f0a801eeab30a0bce16
Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
Date: 2025-06-30 (Mon, 30 Jun 2025)
Changed paths:
M msvc/sys/stat.h
Log Message:
-----------
msvc: Add aliases S_IRUSR and S_IWUSR for _S_IREAD and _S_IWRITE (#5957)
* msvc: Add aliases S_IRUSR and S_IWUSR for _S_IREAD and _S_IWRITE
As per the documentation of _open() https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/open-wopen, the correct modes to use are named differently than on UNIX. However, exposing the constants with the same name as used in the code, defined in a file with other file opening aliases are defined seems appropriate.
* msvc: Only include <io.h> once
* Move S_IRUSR and S_IWUSR definitions to msvc/sys/stat.h
---------
Co-authored-by: Huidae Cho <grass4u at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list