diff options
author | rsc <devnull@localhost> | 2004-06-16 16:45:22 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-06-16 16:45:22 +0000 |
commit | 819822c98db971219e5b54ce5f85101c173c1cda (patch) | |
tree | 729086651bfe85e8d2fd60d183444efe4104442a /include/venti.h | |
parent | e42882dc96325652ff553838e560e6901b5d7977 (diff) | |
download | plan9port-819822c98db971219e5b54ce5f85101c173c1cda.tar.gz plan9port-819822c98db971219e5b54ce5f85101c173c1cda.tar.bz2 plan9port-819822c98db971219e5b54ce5f85101c173c1cda.zip |
various fixes
Diffstat (limited to 'include/venti.h')
-rw-r--r-- | include/venti.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/include/venti.h b/include/venti.h index e0ae8c60..0ea07c4c 100644 --- a/include/venti.h +++ b/include/venti.h @@ -1,6 +1,6 @@ #ifndef _VENTI_H_ #define _VENTI_H_ 1 -#if defined(__cplusplus) +#ifdef __cplusplus extern "C" { #endif /* XXX should be own library? */ @@ -37,10 +37,10 @@ void packetsha1(Packet*, uchar sha1[20]); /* XXX begin actual venti.h */ -/* -#pragma lib "libnventi.a" -#pragma src "/sys/src/libnventi" -*/ +#ifndef PLAN9PORT +#pragma lib "libventi.a" +#pragma src "/sys/src/libventi" +#endif typedef struct VtFcall VtFcall; typedef struct VtConn VtConn; @@ -166,7 +166,10 @@ int vtparsescore(char *s, char **prefix, uchar[VtScoreSize]); * * V a venti score */ -/* #pragma varargck type "V" uchar* */ +#ifndef PLAN9PORT +#pragma varargck type "V" uchar* +#pragma varargck type "F" VtFcall* +#endif int vtscorefmt(Fmt*); @@ -449,7 +452,7 @@ int vtfileremove(VtFile*); extern int chattyventi; extern int ventidoublechecksha1; -#if defined(__cplusplus) +#ifdef __cplusplus } #endif #endif |