[Bug ada/37641] New: FILE_WRITE_PROPERTIES is deprecated
nightstrike at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Sep 24 17:00:00 GMT 2008
adaint.c uses a macro for mingw called FILE_WRITE_PROPERTIES. This has long
since been deprecated, and is instead replaced with FILE_WRITE_EA. Both macros
are defined to the same value (0x0010), but one does not exist in current
versions (such as mingw-w64, the 64-bit port). I recommend updating to the new
macro. The below is a patch that should work:
===================================================================
--- ../../../gcc/gcc/ada/adaint.c (revision 140599)
+++ ../../../gcc/gcc/ada/adaint.c (working copy)
@@ -1923,7 +1923,7 @@
__gnat_set_OWNER_ACL
(wname, DENY_ACCESS,
FILE_WRITE_DATA | FILE_APPEND_DATA |
- FILE_WRITE_PROPERTIES | FILE_WRITE_ATTRIBUTES);
+ FILE_WRITE_EA | FILE_WRITE_ATTRIBUTES);
SetFileAttributes
(wname, GetFileAttributes (wname) | FILE_ATTRIBUTE_READONLY);
#elif ! defined (__vxworks) && ! defined(__nucleus__)
--
Summary: FILE_WRITE_PROPERTIES is deprecated
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: trivial
Priority: P3
Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: nightstrike at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37641
More information about the Gcc-bugs
mailing list