ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/libopm/src/compat.h
Revision: 5052
Committed: Mon Dec 22 11:56:03 2014 UTC (9 years, 3 months ago) by michael
Content type: text/x-chdr
File size: 495 byte(s)
Log Message:
- Initial import of bopm 3.1.3

File Contents

# Content
1 #ifndef COMPAT_H
2 #define COMPAT_H
3
4 #ifndef INADDR_NONE
5 #define INADDR_NONE 0xffffffff
6 #endif
7
8 #ifndef HAVE_INET_ATON
9 #undef inet_aton
10 #define inet_aton libopm_inet_aton
11 extern int libopm_inet_aton(const char *cp, struct in_addr *inp);
12 #endif
13
14 #ifndef HAVE_SNPRINTF
15 #undef snprintf
16 #define snprintf libopm_snprintf
17 #endif
18
19 #ifndef HAVE_VSNPRINTF
20 #undef vsnprintf
21 #define vsnprintf libopm_vsnprintf
22 #endif
23
24 #ifndef HAVE_INET_PTON
25 #undef inet_pton
26 #define inet_pton libopm_inet_pton
27 #endif
28
29 #endif