Skip to content

Fix mingw gcc compiler warning of redefining file access mode macros

Biswapriyo Nath requested to merge (removed):mingw-gcc into master
This fixes compiler warnings as following.

kdiff3/src/fileaccess.cpp:424:9: warning: "S_IWUSR" redefined
  424 | #define S_IWUSR 0200  // Write by owner.
      |         ^~~~~~~
sys/stat.h:151:9: note: this is the location of the previous definition
  151 | #define S_IWUSR         _S_IWUSR
      |         ^~~~~~~

sys/stat.h from mingw-w64 defines those macros. The change is same as in
https://invent.kde.org/frameworks/kio/-/commit/afaf9e1615a262372d366798e75f3148e2c25d82

Merge request reports