diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2016-04-18 14:58:22 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2016-04-18 14:58:22 +0200 |
commit | be0355585f0b4ce41cf72300f3a30008a0b4ff3d (patch) | |
tree | 101be37eb6b24b438927cbeac6c68bfcf9502723 /gcc/ada/adaint.h | |
parent | 9d4f98325184df9941460b962739d4457138bf86 (diff) | |
download | gcc-be0355585f0b4ce41cf72300f3a30008a0b4ff3d.zip gcc-be0355585f0b4ce41cf72300f3a30008a0b4ff3d.tar.gz gcc-be0355585f0b4ce41cf72300f3a30008a0b4ff3d.tar.bz2 |
[multiple changes]
2016-04-18 Arnaud Charlet <charlet@adacore.com>
* einfo.adb (Overridden_Operation): assert that
function is called for valid arguments.
* sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_type.adb,
s-osinte-vxworks.ads, a-ngcefu.adb, sem_ch10.adb, einfo.ads,
sem_prag.adb, sem_ch12.adb, sem.adb, i-cobol.ads, freeze.adb,
sem_util.adb, a-chtgop.ads, s-rannum.adb, exp_ch6.adb, s-bignum.adb,
s-osinte-freebsd.ads, par-ch5.adb, a-chtgbo.ads, a-cofove.adb:
No space after closing parenthesis except where required for
layout.
* sem_res.adb: Minor reformatting.
2016-04-18 Arnaud Charlet <charlet@adacore.com>
* exp_ch4.adb (Expand_N_Case_Expression): Convert into a case
statement when relevant.
2016-04-18 Bob Duff <duff@adacore.com>
* a-cuprqu.adb (Enqueue): Properly handle the
case where the new element has a unique priority.
2016-04-18 Tristan Gingold <gingold@adacore.com>
* adaint.h: Define stat structures and functions for iOS
simulator.
From-SVN: r235146
Diffstat (limited to 'gcc/ada/adaint.h')
-rw-r--r-- | gcc/ada/adaint.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/ada/adaint.h b/gcc/ada/adaint.h index 5df1926..2559a31 100644 --- a/gcc/ada/adaint.h +++ b/gcc/ada/adaint.h @@ -67,6 +67,30 @@ extern "C" { #define GNAT_LSTAT lstat #define GNAT_STRUCT_STAT struct stat64 +#elif defined(__APPLE__) + +# include <TargetConditionals.h> + +# if TARGET_IPHONE_SIMULATOR + /* On iOS (simulator or not), the stat structure is the 64 bit one. + But the simulator uses the MacOS X syscalls that aren't 64 bit. + Fix this interfacing issue here. */ + int fstat64(int, struct stat *); + int stat64(const char *, struct stat *); + int lstat64(const char *, struct stat *); +# define GNAT_STAT stat64 +# define GNAT_FSTAT fstat64 +# define GNAT_LSTAT lstat64 +# else +# define GNAT_STAT stat +# define GNAT_FSTAT fstat +# define GNAT_LSTAT lstat +# endif + +# define GNAT_FOPEN fopen +# define GNAT_OPEN open +# define GNAT_STRUCT_STAT struct stat + #else #define GNAT_FOPEN fopen #define GNAT_OPEN open |