aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortenox7 <as@tenoware.com>2018-07-17 02:21:07 -0700
committertenox7 <as@tenoware.com>2018-07-17 02:21:07 -0700
commit1a539865400e8b45a0b5b9cda477675dec32e4aa (patch)
tree4dae7caa2ab9f7ecff423a9faa227352d9293854
parent2470ac5868898e5c3867e4231ca773017e0237e2 (diff)
downloadwfm-1a539865400e8b45a0b5b9cda477675dec32e4aa.tar.gz
display max temp file size in about
-rw-r--r--dialogs.c3
-rw-r--r--wfm.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/dialogs.c b/dialogs.c
index aa2d0ce..dfae4a4 100644
--- a/dialogs.c
+++ b/dialogs.c
@@ -273,6 +273,9 @@ void about(void) {
"OS: %s %s %s %s %s<BR>\n"
"NAME_MAX: %d<BR>\n"
"PATH_MAX: %d<BR>\n"
+#ifdef CGIMAXTEMPFILESIZE
+ "Max Temp File Size: "STRINGIFY(CGIMAXTEMPFILESIZE)" <BR>\n"
+#endif
"User Agent: %s<BR>\n"
"JavaScript Level: %d<BR>\n"
"Change Control: %s (%s)<BR>\n"
diff --git a/wfm.h b/wfm.h
index 346a670..8af36d6 100644
--- a/wfm.h
+++ b/wfm.h
@@ -31,6 +31,9 @@
CSS_STYLE
+#define _STRINGIFY(s) #s
+#define STRINGIFY(s) _STRINGIFY(s)
+
#define _FILE_OFFSET_BITS 64
#ifdef __sun__