compat.h 745 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * compat.h
  3. * wrap-around header for all compability functions.
  4. *
  5. */
  6. #ifndef _EGG_COMPAT_COMPAT_H
  7. #define _EGG_COMPAT_COMPAT_H
  8. #include "inet_aton.h"
  9. #include "inet_ntop.h"
  10. #include "snprintf.h"
  11. #include "memset.h"
  12. #include "memcpy.h"
  13. #include "strcasecmp.h"
  14. #include "strftime.h"
  15. /* These apparently are unsafe without recasting. */
  16. #define egg_isdigit(x) isdigit((int) (unsigned char) (x))
  17. #define egg_isxdigit(x) isxdigit((int) (unsigned char) (x))
  18. #define egg_isascii(x) isascii((int) (unsigned char) (x))
  19. #define egg_isspace(x) isspace((int) (unsigned char) (x))
  20. #define egg_islower(x) islower((int) (unsigned char) (x))
  21. #define egg_isupper(x) isupper((int) (unsigned char) (x))
  22. #endif /* !__EGG_COMPAT_COMPAT_H */