Bug 804833: Allow PR_FormatTime and PR_FormatTimeUSEnglish with

NO_NSPR_10_SUPPORT. The patch is contributed by Isaac Aggrey
<isaac.aggrey@gmail.com>. r=wtc.


git-svn-id: svn://10.0.0.236/trunk@264375 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
wtc%google.com
2012-10-23 23:35:58 +00:00
parent 5211bd217c
commit d421ad2fe2

View File

@@ -246,17 +246,6 @@ NSPR_API(PRStatus) PR_ParseTimeString (
PRBool default_to_gmt,
PRTime *result);
/*
* FIXME: should we also have a formatting function, such as asctime, ctime,
* and strftime in standard C library? But this would involve
* internationalization issues. Might want to provide a US English version.
*/
/**********************************************************************/
/*********************** OLD COMPATIBILITYFUNCTIONS *******************/
/**********************************************************************/
#ifndef NO_NSPR_10_SUPPORT
/* Format a time value into a buffer. Same semantics as strftime() */
NSPR_API(PRUint32) PR_FormatTime(char *buf, int buflen, const char *fmt,
const PRExplodedTime *tm);
@@ -268,8 +257,6 @@ NSPR_API(PRUint32)
PR_FormatTimeUSEnglish( char* buf, PRUint32 bufSize,
const char* format, const PRExplodedTime* tm );
#endif /* NO_NSPR_10_SUPPORT */
PR_END_EXTERN_C
#endif /* prtime_h___ */