gcc4 alias fixes.

This commit is contained in:
Marcus Meissner 2005-04-25 10:48:59 +00:00 committed by Alexandre Julliard
parent accf3ee2e6
commit 6b7e3e1cfd
3 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ static inline int outp(unsigned short i, int j) { return _outp(i, j); }
static inline unsigned short outpw(unsigned short i, unsigned short j) { return _outpw(i, j); }
#endif
#ifdef __GNUC__
#if defined(__GNUC__) && (__GNUC__ < 4)
extern int cprintf(const char*,...) __attribute__((alias("_cprintf"),format(printf,1,2)));
extern int cscanf(const char*,...) __attribute__((alias("_cscanf"),format(scanf,1,2)));
#else

View File

@ -175,7 +175,7 @@ static inline int unlink(const char* path) { return _unlink(path); }
#endif
static inline int write(int fd, const void* buf, unsigned int size) { return _write(fd, buf, size); }
#ifdef __GNUC__
#if defined(__GNUC__) && (__GNUC__ < 4)
extern int open(const char*,int,...) __attribute__((alias("_open")));
extern int sopen(const char*,int,int,...) __attribute__((alias("_sopen")));
#else

View File

@ -125,7 +125,7 @@ static inline int spawnve(int flags, const char* name, const char* const* argv,
static inline int spawnvp(int flags, const char* name, const char* const* argv) { return _spawnvp(flags, name, argv); }
static inline int spawnvpe(int flags, const char* name, const char* const* argv, const char* const* envv) { return _spawnvpe(flags, name, argv, envv); }
#ifdef __GNUC__
#if defined(__GNUC__) && (__GNUC__ < 4)
extern int execl(const char*,const char*,...) __attribute__((alias("_execl")));
extern int execle(const char*,const char*,...) __attribute__((alias("_execle")));
extern int execlp(const char*,const char*,...) __attribute__((alias("_execlp")));