diff options
author | Olivier Hainque <hainque@adacore.com> | 2020-01-14 10:25:35 +0000 |
---|---|---|
committer | Olivier Hainque <hainque@adacore.com> | 2022-01-04 10:27:11 +0000 |
commit | a54d11749f0ce98192cfe28e5ccc0633d4db3982 (patch) | |
tree | ddc1583d10b3b61018fcf865d01ccf50582f6134 /fixincludes/tests | |
parent | 48e2d9b7b88dabed336cd098cd212d0e53c5125f (diff) | |
download | gcc-a54d11749f0ce98192cfe28e5ccc0633d4db3982.zip gcc-a54d11749f0ce98192cfe28e5ccc0633d4db3982.tar.gz gcc-a54d11749f0ce98192cfe28e5ccc0633d4db3982.tar.bz2 |
Adjust VxWorks fixincludes hack for mkdir to work for C++
For VxWorks, replace an attempt at providing a posix API for
mkdir via macro by a varargs prototype, which works better for
C++ references like std::mkdir(arg1, arg2).
2021-12-16 Olivier Hainque <hainque@adacore.com>
fixincludes/
* inclhack.def (vxworks_posix_mkdir): Refine to expose a
varargs interface.
* tests/base/sys/stat.h: Update expected results.
* fixincl.x: Regenerate.
Diffstat (limited to 'fixincludes/tests')
-rw-r--r-- | fixincludes/tests/base/sys/stat.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fixincludes/tests/base/sys/stat.h b/fixincludes/tests/base/sys/stat.h index 9c81cff..cf86e5d 100644 --- a/fixincludes/tests/base/sys/stat.h +++ b/fixincludes/tests/base/sys/stat.h @@ -28,11 +28,9 @@ extern int fchmod(int, mode_t); #endif /* RS6000_FCHMOD_CHECK */ -#if defined( VXWORKS_MKDIR_MACRO_CHECK ) -extern STATUS mkdir (const char * _qwerty) ; -#define mkdir(dir, ...) ((void)0, ##__VA_ARGS__, (mkdir)(dir)) - -#endif /* VXWORKS_MKDIR_MACRO_CHECK */ +#if defined( VXWORKS_POSIX_MKDIR_CHECK ) +extern STATUS mkdir(const char *dir, ...); +#endif /* VXWORKS_POSIX_MKDIR_CHECK */ #if defined( VXWORKS_NEEDS_VXWORKS_CHECK ) |