stand: Allow stand.h to be included in C++ programs
Allow stand.h to be included in C++ programs. This is little more than using our stylized __BEGIN_DECL / __END_DECL around the entire file. There's no run-time support for C++, so the C++ that can be used is quite limited. It is enough for libunwind, though. Sponsored by: Netflix Reviewed by: jrtc27, kevans Differential Revision: https://reviews.freebsd.org/D37946
This commit is contained in:
parent
97e1430606
commit
5cf20707ba
@ -61,8 +61,9 @@
|
||||
#ifndef STAND_H
|
||||
#define STAND_H
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/dirent.h>
|
||||
#include <sys/queue.h>
|
||||
@ -90,6 +91,8 @@
|
||||
/* Partial signal emulation for sig_atomic_t */
|
||||
#include <machine/signal.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
struct open_file;
|
||||
|
||||
/*
|
||||
@ -509,4 +512,6 @@ void tslog(const char *, const char *, const char *);
|
||||
void tslog_setbuf(void * buf, size_t len);
|
||||
void tslog_getbuf(void ** buf, size_t * len);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif /* STAND_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user