summaryrefslogtreecommitdiff
path: root/cpp/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/hash.c')
-rw-r--r--cpp/hash.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/hash.c b/cpp/hash.c
index 11c32da..7cab819 100644
--- a/cpp/hash.c
+++ b/cpp/hash.c
@@ -1,6 +1,10 @@
#include <stdio.h>
+#ifdef __STDC__
+#include <stdlib.h>
+#else
#include <malloc.h>
+#endif
#include "cc.h"
/*
@@ -23,7 +27,7 @@ struct hashentry
struct hashentry ** hashtable;
int hashsize = 0xFF; /* 2^X -1 */
int hashcount = 0;
-static int hashvalue _P((int namespace, char * word));
+static int hashvalue P((int namespace, char * word));
void *
read_entry(namespace, word)