aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-11-26 21:59:23 +0200
committerArnold D. Robbins <arnold@skeeve.com>2018-11-26 21:59:23 +0200
commit4d481023b2ff756dc8c77c66e6a4864f9c072007 (patch)
tree190bd041c9814ad7267b34e49b458c595995b991 /main.c
parent6e786c0622d9afd845ff56ac83c6bc9726dbe230 (diff)
downloadegawk-4d481023b2ff756dc8c77c66e6a4864f9c072007.tar.gz
egawk-4d481023b2ff756dc8c77c66e6a4864f9c072007.tar.bz2
egawk-4d481023b2ff756dc8c77c66e6a4864f9c072007.zip
Revise PROCINFO["platform"] and related doc.
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/main.c b/main.c
index a97bd180..45cae61d 100644
--- a/main.c
+++ b/main.c
@@ -1777,18 +1777,17 @@ set_locale_stuff(void)
static const char *
platform_name()
{
+ // Cygwin and Mac OS X count as POSIX
#if defined(__VMS)
return "vms";
-#elif defined(__APPLE__)
- return "macosx";
#elif defined(__MINGW32__)
return "mingw";
#elif defined(__DJGPP__)
return "djgpp";
-#elif defined(__CYGWIN__)
- return "cygwin";
#elif defined(__EMX__)
return "os2";
+#elif defined(USE_EBCDIC)
+ return "os390";
#else
return "posix";
#endif