#define LOCAL_INCLUDE_DIR "/usr/local/include"
#endif
+#ifdef __STDC__
+#define PTR_INT_TYPE ptrdiff_t
+#else
+#define PTR_INT_TYPE long
+#endif
+
#include "pcp.h"
#ifndef STDC_VALUE
#define INCLUDE_LEN_FUDGE 0
#endif
-/* Exported declarations. */
+/* Forward declarations. */
char *xmalloc ();
void error ();
extern FILE *fdopen ();
extern char *version_string;
extern struct tm *localtime ();
+extern char *malloc (), *realloc ();
extern int sys_nerr;
extern char *sys_errlist[];
/* by the text of the string (string_start) */
/* First skip to a longword boundary */
- if ((int)cp & 3)
- cp += 4 - ((int)cp & 3);
+ /* ??? Why a 4-byte boundary? On all machines? */
+ if ((PTR_INT_TYPE) cp & 3)
+ cp += 4 - ((PTR_INT_TYPE) cp & 3);
/* Now get the string. */
str = (STRINGDEF *) cp;