summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-12-16 11:52:20 -0700
committerKarl Williamson <public@khwilliamson.com>2013-12-17 09:37:57 -0700
commit7e9966717022674c08e69f89778c2939c432ddf1 (patch)
tree5615816e92884021821bef4add3254cced3ec252 /perl.h
parent5f1b979d481f8f74f4973abc11435dc40d2d9c18 (diff)
downloadperl-7e9966717022674c08e69f89778c2939c432ddf1.tar.gz
perl.h: Move a string constant to a #define
This is so it can be used in another file
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index 2d98004780..2d611e9bff 100644
--- a/perl.h
+++ b/perl.h
@@ -1255,6 +1255,8 @@ EXTERN_C char *crypt(const char *, const char *);
* #define errno (*_errno()) */
#endif
+#define UNKNOWN_ERRNO_MSG "(unknown)"
+
#ifdef HAS_STRERROR
# ifndef DONT_DECLARE_STD
# ifdef VMS
@@ -1272,7 +1274,7 @@ EXTERN_C char *crypt(const char *, const char *);
extern char *sys_errlist[];
# ifndef Strerror
# define Strerror(e) \
- ((e) < 0 || (e) >= sys_nerr ? "(unknown)" : sys_errlist[e])
+ ((e) < 0 || (e) >= sys_nerr ? UNKNOWN_ERRNO_MSG : sys_errlist[e])
# endif
# endif
#endif