From 1e57c07f784e50af86a7e65d080f6c2f59a229ee Mon Sep 17 00:00:00 2001 From: "nelsonb%netscape.com" Date: Tue, 25 Jun 2002 22:58:43 +0000 Subject: Fix duplicate declaration of struct tm and related functions by adding an ifdef. The othe declaration is in MFC's wcealt.h. --- pr/include/md/_wince_libc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pr/include/md/_wince_libc.h b/pr/include/md/_wince_libc.h index 9e7df337..71285564 100644 --- a/pr/include/md/_wince_libc.h +++ b/pr/include/md/_wince_libc.h @@ -70,6 +70,8 @@ typedef int ptrdiff_t; /* pointer difference */ /* The following definitions are generally expected in */ +#ifndef _TM_DEFINED +#define _TM_DEFINED /* * struct tm * @@ -96,6 +98,7 @@ struct tm { _NSPRIMP struct tm* gmtime(const time_t* inTimeT); _NSPRIMP struct tm* localtime(const time_t* inTimeT); _NSPRIMP time_t mktime(struct tm* inTM); +#endif _NSPRIMP size_t strftime(char *strDest, size_t maxsize, const char *format, const struct tm *timeptr); -- cgit v1.2.1