aboutsummaryrefslogtreecommitdiffstats
path: root/vsnprintf.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-01-18 09:01:03 -0500
committerPeter Zhu <peter@peterzhu.ca>2022-01-18 09:52:15 -0500
commitffda21b7ba451b8fd874e9c8c2162c55053caa1e (patch)
tree0acbf6b73b7d5c1f6e175a6ac7fb087aad3baf1a /vsnprintf.c
parent54568c949b587f1e71ac38a478696f5c872bb643 (diff)
downloadruby-ffda21b7ba451b8fd874e9c8c2162c55053caa1e.tar.gz
[Feature #18491] Drop support for HP-UX
IA64 support was dropped in ticket #15894, so we can drop support for HP-UX.
Diffstat (limited to 'vsnprintf.c')
-rw-r--r--vsnprintf.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/vsnprintf.c b/vsnprintf.c
index 8bfa0c1656..cfb8365caa 100644
--- a/vsnprintf.c
+++ b/vsnprintf.c
@@ -101,23 +101,12 @@
# endif
#endif
-#if defined(__hpux) && !defined(__GNUC__) && !defined(__STDC__)
-#define const
-#endif
-
#if defined(sgi)
#undef __const
#define __const
#endif /* People who don't like const sys_error */
#include <stddef.h>
-#if defined(__hpux) && !defined(__GNUC__) || defined(__DECC)
-#include <string.h>
-#endif
-
-#if !defined(__CYGWIN32__) && defined(__hpux) && !defined(__GNUC__)
-#include <stdlib.h>
-#endif
#ifndef NULL
#define NULL 0
@@ -251,9 +240,7 @@ BSD__sfvwrite(register FILE *fp, register struct __suio *uio)
if ((len = uio->uio_resid) == 0)
return (0);
-#ifndef __hpux
#define MIN(a, b) ((a) < (b) ? (a) : (b))
-#endif
#define COPY(n) (void)memcpy((void *)fp->_p, (void *)p, (size_t)(n))
iov = uio->uio_iov;