ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/releases/1.0.0beta1/src/compat.h
Revision: 5059
Committed: Mon Dec 22 13:43:00 2014 UTC (11 years, 7 months ago) by michael
Content type: text/x-chdr
Original Path: hopm/trunk/src/compat.h
File size: 327 byte(s)
Log Message:
- C99 is now mandatory. Removed snprintf.c and related code

File Contents

# User Rev Content
1 michael 5052 #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 bopm_inet_aton
11     extern int bopm_inet_aton(const char *cp, struct in_addr *inp);
12     #endif
13    
14     #ifndef HAVE_INET_PTON
15     #undef inet_pton
16     #define inet_pton bopm_inet_pton
17     #endif
18    
19     #endif