strftime.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * strftime.h
  3. * header file for strftime.c
  4. *
  5. * $Id: strftime.h,v 1.1 2005/04/08 13:48:29 Administrator Exp $
  6. */
  7. /*
  8. * Copyright (C) 2000 Eggheads
  9. * Written by Fabian Knittel
  10. *
  11. * This program is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License
  13. * as published by the Free Software Foundation; either version 2
  14. * of the License, or (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  24. */
  25. #ifndef _EGG_COMPAT_STRFTIME_H_
  26. #define _EGG_COMPAT_STRFTIME_H_
  27. #include "src/main.h"
  28. #include <time.h>
  29. /* Use the system libraries version of strftime() if available. Otherwise
  30. * use our own.
  31. */
  32. #ifndef HAVE_STRFTIME
  33. size_t egg_strftime(char *s, size_t maxsize, const char *format,
  34. const struct tm *tp);
  35. #else
  36. # define egg_strftime strftime
  37. #endif
  38. #endif /* !_EGG_COMPAT_STRFTIME_H_ */