summaryrefslogtreecommitdiff
path: root/h/zephyr
diff options
context:
space:
mode:
authorGravatar Kenneth G Raeburn <raeburn@mit.edu>1990-07-16 05:46:47 +0000
committerGravatar Kenneth G Raeburn <raeburn@mit.edu>1990-07-16 05:46:47 +0000
commit851e35b408ec06a62a8ec4d538894a6c9b21e999 (patch)
treede160a79a93d9158c07d835983c4dbfcb7588a95 /h/zephyr
parent5f77c3fe4aa2045bda2c973faaa144a5a3e50dac (diff)
Added prototypes and some minimal C++ compatibility code.
[audited by jfc]
Diffstat (limited to 'h/zephyr')
-rw-r--r--h/zephyr/zephyr_internal.h28
1 files changed, 20 insertions, 8 deletions
diff --git a/h/zephyr/zephyr_internal.h b/h/zephyr/zephyr_internal.h
index 2942cc7..5b8d780 100644
--- a/h/zephyr/zephyr_internal.h
+++ b/h/zephyr/zephyr_internal.h
@@ -82,13 +82,25 @@ extern int __subscriptions_next;
extern int krb_err_base;
-extern char *malloc();
-extern time_t time();
-extern long random();
-
-extern struct _Z_InputQ *Z_GetFirstComplete();
-extern struct _Z_InputQ *Z_GetNextComplete();
-extern Code_t Z_XmitFragment();
-extern void Z_RemQueue();
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if defined(__STDC__)
+ extern void *malloc (unsigned);
+#else
+ extern char *malloc();
+#endif
+ extern time_t time Zproto((time_t *));
+ extern long random();
+
+ extern struct _Z_InputQ *Z_GetFirstComplete();
+ extern struct _Z_InputQ *Z_GetNextComplete();
+ extern Code_t Z_XmitFragment Zproto((ZNotice_t*, char *,int,int));
+ extern void Z_RemQueue Zproto ((struct _Z_InputQ *));
+
+#ifdef __cplusplus
+}
+#endif
#endif !__ZINTERNAL_H__