00001 /* 00002 * strftime.h 00003 * header file for strftime.c 00004 * 00005 * $Id: strftime.h,v 1.14 2011/02/13 14:19:33 simple Exp $ 00006 */ 00007 /* 00008 * Copyright (C) 2000 - 2011 Eggheads Development Team 00009 * Written by Fabian Knittel 00010 * 00011 * This program is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU General Public License 00013 * as published by the Free Software Foundation; either version 2 00014 * of the License, or (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with this program; if not, write to the Free Software 00023 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00024 */ 00025 00026 #ifndef _EGG_COMPAT_STRFTIME_H_ 00027 #define _EGG_COMPAT_STRFTIME_H_ 00028 00029 #include "src/main.h" 00030 #include <time.h> 00031 00032 /* Use the system libraries version of strftime() if available. Otherwise 00033 * use our own. 00034 */ 00035 #ifndef HAVE_STRFTIME 00036 size_t egg_strftime(char *s, size_t maxsize, const char *format, 00037 const struct tm *tp); 00038 #else 00039 # define egg_strftime strftime 00040 #endif 00041 00042 #endif /* !_EGG_COMPAT_STRFTIME_H_ */