Otherwise it triggers linker warnings.
/tmp/pkgsrc-tmp/wip/coreclr-git/work/coreclr/src/gc/gc.cpp:33869:
warning: warning: reference to compatibility time(); include <time.h> for correct reference
$ uname -a
NetBSD chieftec 7.99.25 NetBSD 7.99.25 (GENERIC) #0: Fri Dec 25 20:51:06 UTC 2015 root@chieftec:/tmp/netbsd-tmp/sys/arch/amd64/compile/GENERIC amd64
#define localtime PAL_localtime
#define mktime PAL_mktime
#define rand PAL_rand
+#define time PAL_time
#define getenv PAL_getenv
#define fgets PAL_fgets
#define fgetws PAL_fgetws
--*/
PAL_time_t
-__cdecl
+__cdecl
PAL_mktime(struct PAL_tm *tm)
{
time_t result;
}
+/*++
+Function:
+
+ time
+
+See MSDN for more details.
+--*/
+PAL_time_t
+__cdecl
+PAL_time(PAL_time_t *tloc)
+{
+ time_t result;
+
+ PERF_ENTRY(time);
+ ENTRY( "time( tloc=%p )\n",tloc );
+
+ result = time(tloc);
+
+ LOGEXIT( "time returning %#lx\n",result );
+ PERF_EXIT(time);
+ return result;
+}
+
+
PALIMPORT
void __cdecl
PAL_qsort(void *base, size_t nmemb, size_t size,
Function :
PAL_rand
-
- Calls rand and mitigates the difference between RAND_MAX
+
+ Calls rand and mitigates the difference between RAND_MAX
on Windows and FreeBSD.
--*/
int __cdecl PAL_rand(void);
+/*++
+Function :
+
+ PAL_time
+--*/
+PAL_time_t __cdecl PAL_time(PAL_time_t*);
+
/*++
Function:
TIMEInitialize
#endif // __cplusplus
#endif /* __MISC_H_ */
-
#define srand DUMMY_srand
#define atoi DUMMY_atoi
#define atof DUMMY_atof
-#define time DUMMY_time
#define tm PAL_tm
#define size_t DUMMY_size_t
#define time_t PAL_time_t