aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--custom.h12
2 files changed, 11 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index a34532fc..47e562ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,11 @@
+2020-01-27 Arnold D. Robbins <arnold@skeeve.com>
+
+ * custom.h: Fix non-VMS compilation.
+
2020-01-26 John E. Malmberg <wb8tyw@qsl.net>
* custom.h: Additional OpenVMS typedefs needed.
- * getext.h: Fix macro for implementations with out gettext
+ * getext.h: Fix macro for implementations without gettext
to not force the result to be a const char *.
2020-01-26 Andrew J. Schorr <aschorr@telemetry-investments.com>
diff --git a/custom.h b/custom.h
index 2f3a2323..ffeb77ea 100644
--- a/custom.h
+++ b/custom.h
@@ -46,17 +46,16 @@
#undef isnan
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
-#endif
+#endif /* _GNU_SOURCE */
#ifndef SIZE_MAX
#define SIZE_MAX __INT32_MAX
-#endif
+#endif /* SIZE_MAX */
#define ULONG_WIDTH 32
#ifndef __VAX
#ifndef ULLONG_MAX
#define ULLONG_MAX __UINT64_MAX
-#endif
-#endif
-#endif
+#endif /* ULLONG_MAX */
+#endif /* __VAX */
typedef char int_least8_t;
typedef unsigned char uint_least8_t;
typedef short int_least16_t;
@@ -64,7 +63,8 @@ typedef unsigned short uint_least16_t;
#ifndef __VAX
typedef long long int_fast64_t;
typedef unsigned long long uint_fast64_t;
-#endif
+#endif /* __VAX */
+#endif /* __VMS */
/* For QNX, based on submission from Michael Hunter, mphunter@qnx.com */