diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-12-16 11:52:20 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-12-17 09:37:57 -0700 |
commit | 7e9966717022674c08e69f89778c2939c432ddf1 (patch) | |
tree | 5615816e92884021821bef4add3254cced3ec252 /perl.h | |
parent | 5f1b979d481f8f74f4973abc11435dc40d2d9c18 (diff) | |
download | perl-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |