3 _cc_export_dynamic = note{ probe CC.EXPORT.DYNAMIC supported }end run{
4 case `{ probe -l C make cc | grep '^CC.EXPORT.DYNAMIC = .'; } 2>/dev/null` in
9 tst tzset_environ note{ tzset() bypasses user getenv() }end execute{
10 #if _UWIN || !_cc_export_dynamic
17 extern char** environ;
18 extern char* tzname[2];
20 extern char* getenv(char* s)
22 extern char* getenv(s)
31 return tzname[0] && !strcmp(tzname[0], "foo") &&
32 tzname[1] && !strcmp(tzname[1], "bar");
37 if ( _tzset_environ ) {
38 #define tmlocaltime(p) _tm_localtime(p)
40 extern struct tm* _tm_localtime(const time_t*);
43 #define tmlocaltime(p) localtime(p)