# HG changeset patch # User mru # Date 1163475748 0 # Node ID a561635afa6152a5512cb24063e8f8f635f80571 # Parent 7e288adde245515b9cc8e23cd393d206fa25b111 simplify diff -r 7e288adde245 -r a561635afa61 os_support.c --- a/os_support.c Tue Nov 14 01:34:36 2006 +0000 +++ b/os_support.c Tue Nov 14 03:42:28 2006 +0000 @@ -53,8 +53,7 @@ #endif } -#if !defined(CONFIG_WINCE) -#if !defined(HAVE_LOCALTIME_R) +#if !defined(CONFIG_WINCE) && !defined(HAVE_LOCALTIME_R) struct tm *localtime_r(const time_t *t, struct tm *tp) { struct tm *l; @@ -65,5 +64,4 @@ *tp = *l; return tp; } -#endif /* !defined(HAVE_LOCALTIME_R) */ -#endif /* !defined(CONFIG_WINCE) */ +#endif /* !defined(CONFIG_WINCE) && !defined(HAVE_LOCALTIME_R) */