1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Wrap function prototype declarations in __BEGIN_DECLS to do the right thing

with them in non-C cases, outside of the kernel.

Include <sys/cdefs.h> for __BEGIN_DECLS/__END_DECLS as other headers seem
to do in this area.

Requested by:	Patrick Hartling <patrick@137.org>
This commit is contained in:
Juli Mallett 2002-11-05 10:57:53 +00:00
parent 791e59f673
commit 69af598209
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106454

View File

@ -29,6 +29,8 @@
#ifndef _SYS_UUID_H_
#define _SYS_UUID_H_
#include <sys/cdefs.h>
/* Length of a node address (an IEEE 802 address). */
#define _UUID_NODE_LEN 6
@ -63,7 +65,9 @@ int sbuf_printf_uuid(struct sbuf *, struct uuid *);
/* XXX namespace pollution? */
typedef struct uuid uuid_t;
__BEGIN_DECLS
int uuidgen(struct uuid *, int);
__END_DECLS
#endif /* _KERNEL */