This repository has been archived on 2025-02-12. You can view files and clone it, but cannot push or open issues or pull requests.
NeoStats-opsb/libopm/compat.h

30 lines
487 B
C
Raw Permalink Normal View History

2003-09-23 14:41:40 +00:00
#ifndef COMPAT_H
#define COMPAT_H
#ifndef INADDR_NONE
#define INADDR_NONE 0xffffffff
#endif
#ifndef HAVE_INET_ATON
#undef inet_aton
#define inet_aton libopm_inet_aton
extern int libopm_inet_aton(const char *cp, struct in_addr *inp);
#endif
#ifndef HAVE_SNPRINTF
#undef snprintf
#define snprintf ircsnprintf
2003-09-23 14:41:40 +00:00
#endif
#ifndef HAVE_VSNPRINTF
#undef vsnprintf
#define vsnprintf ircvsnprintf
2003-09-23 14:41:40 +00:00
#endif
#ifndef HAVE_INET_PTON
#undef inet_pton
#define inet_pton libopm_inet_pton
#endif
#endif