diff options
author | Olivier Hainque <hainque@adacore.com> | 2019-08-13 08:07:08 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2019-08-13 08:07:08 +0000 |
commit | 3fee1dcfc7df9b393c019f289b6a28f7ad7f8f8c (patch) | |
tree | fee2dc29f5d93f78d71f8a6bae606716a516cdb9 /gcc/ada/inline.adb | |
parent | 07c6ed01a7822229280329fd99587a35dc2acc83 (diff) | |
download | gcc-3fee1dcfc7df9b393c019f289b6a28f7ad7f8f8c.zip gcc-3fee1dcfc7df9b393c019f289b6a28f7ad7f8f8c.tar.gz gcc-3fee1dcfc7df9b393c019f289b6a28f7ad7f8f8c.tar.bz2 |
[Ada] Fix incorrect binding to MapViewOfFile in s-win32.ads
Despite the "dw" prefix on the name, the dwNumberOfBytesToMap argument
to MapViewOfFile was changed from DWORD to SIZE_T when 64bit Windows
came about.
This change adjusts the binding we have for it in System.Win32
accordingly. For consistency with established practice, an s-win32
specific version of size_t is introduced and g-sercom__mingw.adb is
adjusted to disambiguate between this new size_t and the one already
exposed in System.CRTL.
2019-08-13 Olivier Hainque <hainque@adacore.com>
gcc/ada/
* libgnat/s-win32.ads: Define size_t and fix the MapViewOfFile
binding to use it instead of DWORD for the dwNumberOfBytesToMap
argument.
* libgnat/g-sercom__mingw.adb (Read): State which definition of
size_t to fetch in call to Last_Index.
From-SVN: r274341
Diffstat (limited to 'gcc/ada/inline.adb')
0 files changed, 0 insertions, 0 deletions