diff options
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -102,8 +102,8 @@ int flock(int, int); #define STAT(p, s) stat((p), (s)) #endif -#define rb_sys_fail_path(path) rb_sys_fail_path0(__func__, path) - +#ifdef __GNUC__ +# define rb_sys_fail_path(path) rb_sys_fail_path0(__func__, path) NORETURN(static void rb_sys_fail_path0(const char *,VALUE)); static void rb_sys_fail_path0(const char *func_name, VALUE path) @@ -112,6 +112,9 @@ rb_sys_fail_path0(const char *func_name, VALUE path) rb_str_buf_append(mesg, path); rb_sys_fail_str(mesg); } +#else +# define rb_sys_fail_path(path) rb_sys_fail_str(path) +#endif #if defined(__BEOS__) || defined(__HAIKU__) /* should not change ID if -1 */ static int |