27#if defined (__EDG__) \
28 && !defined (__DECCXX) \
29 && !defined (__HP_aCC) \
30 && !defined (__INTEL_COMPILER) \
31 && !defined (_SGI_COMPILER_VERSION)
35# pragma diag_suppress 450
42#ifndef _RWSTD_NO_WCSFTIME
43# ifndef _RWSTD_NO_WCHAR_H
50#ifndef _RWSTD_NO_NAMESPACE
60typedef size_t (
f_w)(
wchar_t*, size_t,
const wchar_t*,
const struct tm*);
61typedef size_t (
f_c)(
wchar_t*, size_t,
const char*,
const struct tm*);
66const char*
foo (
f_w*) {
return "const wchar_t*"; }
68const char*
foo (
f_c*) {
return "const char*"; }
75 return foo (&wcsftime);
81 const char *argtype =
bar ();
82 if (*(argtype+6) ==
'c') {
83 printf (
"#define _RWSTD_NO_WCSFTIME_WCHAR_T_FMAT\n");
86 printf (
"#define _RWSTD_WCSFTIME_ARG3_T %s\n", argtype);
93extern "C" size_t wcsftime (
wchar_t*,
size_t,
const wchar_t*,
const struct tm*);
99 wchar_t buf [40] = { 0 };
105 size_t n = wcsftime (
buf,
sizeof buf,
L"abc", &
t);
110 &&
wchar_t (
'a') ==
buf [0]
111 &&
wchar_t (
'b') ==
buf [1]
112 &&
wchar_t (
'c') ==
buf [2]
113 &&
wchar_t (
'\0') ==
buf [3])
114 argtype =
"const wchar_t*";
116 argtype =
"const char*";
118 printf (
"#define _RWSTD_NO_WCSFTIME_WCHAR_T_FMAT\n");
122 printf (
"#define _RWSTD_WCSFTIME_ARG3_T %s\n", argtype);
IMPORT_C SInt32 printf(const Char *,...)
size_t() f_w(wchar_t *, size_t, const wchar_t *, const struct tm *)
size_t() f_c(wchar_t *, size_t, const char *, const struct tm *)