Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / OS_NS_arpa_inet.h
blob4c6a44e8e9df0837a2b75c1893bb3270d6043b61
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file OS_NS_arpa_inet.h
7 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
8 * @author Jesper S. M|ller<stophph@diku.dk>
9 * @author and a cast of thousands...
11 //=============================================================================
13 #ifndef ACE_OS_NS_ARPA_INET_H
14 # define ACE_OS_NS_ARPA_INET_H
16 # include /**/ "ace/pre.h"
18 # include "ace/config-all.h"
20 # if !defined (ACE_LACKS_PRAGMA_ONCE)
21 # pragma once
22 # endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include "ace/os_include/arpa/os_inet.h"
25 #include /**/ "ace/ACE_export.h"
27 #if defined (ACE_EXPORT_MACRO)
28 # undef ACE_EXPORT_MACRO
29 #endif
30 #define ACE_EXPORT_MACRO ACE_Export
32 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
34 namespace ACE_OS {
35 ACE_NAMESPACE_INLINE_FUNCTION
36 unsigned long inet_addr (const char *name);
38 extern ACE_Export
39 int inet_aton (const char *strptr,
40 struct in_addr *addr);
42 ACE_NAMESPACE_INLINE_FUNCTION
43 char *inet_ntoa (const struct in_addr addr);
45 ACE_NAMESPACE_INLINE_FUNCTION
46 const char *inet_ntop (int family,
47 const void *addrptr,
48 char *strptr,
49 size_t len);
51 ACE_NAMESPACE_INLINE_FUNCTION
52 int inet_pton (int family,
53 const char *strptr,
54 void *addrptr);
55 } /* namespace ACE_OS */
57 ACE_END_VERSIONED_NAMESPACE_DECL
59 # if defined (ACE_HAS_INLINED_OSCALLS)
60 # if defined (ACE_INLINE)
61 # undef ACE_INLINE
62 # endif /* ACE_INLINE */
63 # define ACE_INLINE inline
64 # include "ace/OS_NS_arpa_inet.inl"
65 # endif /* ACE_HAS_INLINED_OSCALLS */
67 # include /**/ "ace/post.h"
68 #endif /* ACE_OS_NS_ARPA_INET_H */