added C++ header guards

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1655 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper
2002-10-25 15:13:00 +00:00
parent 37514a9358
commit 15750026e0
4 changed files with 34 additions and 6 deletions
+8
View File
@@ -10,6 +10,10 @@
#include <netinet/in.h>
#include <ByteOrder.h> /* htonl, htons, ntohl, ntohs */
#ifdef __cplusplus
extern "C" {
#endif
in_addr_t inet_addr (const char *);
int inet_aton (const char *, struct in_addr *);
in_addr_t inet_lnaof (struct in_addr);
@@ -25,4 +29,8 @@ const char *inet_ntop (int, const void *, char *, size_t);
u_int inet_nsap_addr (const char *, u_char *, int);
char *inet_nsap_ntoa (int, const u_char *, char *);
#ifdef __cplusplus
}
#endif
#endif /* _INET_H */
+8
View File
@@ -89,6 +89,10 @@
#include <sys/types.h>
#include <endian.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* revision information. this is the release date in YYYYMMDD format.
* it can change every day so the right thing to do with it is use it
@@ -359,4 +363,8 @@ extern uint32 _getlong (const u_char *);
(cp) += INT32SZ; \
}
#ifdef __cplusplus
}
#endif
#endif /* !_NAMESER_H_ */
+9 -5
View File
@@ -6,16 +6,16 @@
#define _NET_IF_H
#include <OS.h>
//#include <Drivers.h>
#include <Drivers.h>
#include <sys/socketvar.h>
#include <net/if_types.h>
#include <netinet/in.h>
#include <net/route.h>
/* XXX - hack to get this file building
* taken from be/drivers/Drivers.h
*/
#define B_DEVICE_OP_CODES_END 9999
#ifdef __cplusplus
extern "C" {
#endif
enum {
IF_GETADDR = B_DEVICE_OP_CODES_END,
IF_INIT,
@@ -273,5 +273,9 @@ struct ifa_msghdr {
void if_init(void);
#endif
#ifdef __cplusplus
}
#endif
#endif /* _NET_IF_H */
+9 -1
View File
@@ -5,7 +5,11 @@
#ifndef OBOS_IF_DL_H
#define OBOS_IF_DL_H
#include "net/if.h"
#include <net/if.h>
#ifdef __cplusplus
extern "C" {
#endif
/* link level sockaddr structure */
struct sockaddr_dl {
@@ -26,5 +30,9 @@ struct sockaddr_dl {
void link_addr (const char *, struct sockaddr_dl *);
char *link_ntoa (const struct sockaddr_dl *);
#ifdef __cplusplus
}
#endif
#endif /* OBOS_IF_DL_H */