strftime.h 531 B

123456789101112131415161718192021222324
  1. /*
  2. * strftime.h
  3. * header file for strftime.c
  4. *
  5. */
  6. #ifndef _EGG_COMPAT_STRFTIME_H_
  7. #define _EGG_COMPAT_STRFTIME_H_
  8. #include "src/eggmain.h"
  9. #include <time.h>
  10. /* Use the system libraries version of strftime() if available. Otherwise
  11. * use our own.
  12. */
  13. #ifndef HAVE_STRFTIME
  14. size_t egg_strftime(char *s, size_t maxsize, const char *format,
  15. const struct tm *tp);
  16. #else
  17. # define egg_strftime my_strftime
  18. size_t my_strftime(char *, size_t, const char *, const struct tm *);
  19. #endif
  20. #endif /* !_EGG_COMPAT_STRFTIME_H_ */