@@ -113,15 +113,15 @@ __stdinbuf<_CharT>::uflow()
113
113
return __getchar (true );
114
114
}
115
115
116
- static bool __do_getc (FILE *__fp, char *__pbuf) {
116
+ inline bool __do_getc (FILE *__fp, char *__pbuf) {
117
117
int __c = getc (__fp);
118
118
if (__c == EOF)
119
119
return false ;
120
120
*__pbuf = static_cast <char >(__c);
121
121
return true ;
122
122
}
123
123
#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
124
- static bool __do_getc (FILE *__fp, wchar_t *__pbuf) {
124
+ inline bool __do_getc (FILE *__fp, wchar_t *__pbuf) {
125
125
wint_t __c = getwc (__fp);
126
126
if (__c == WEOF)
127
127
return false ;
@@ -130,13 +130,13 @@ static bool __do_getc(FILE *__fp, wchar_t *__pbuf) {
130
130
}
131
131
#endif
132
132
133
- static bool __do_ungetc (int __c, FILE *__fp, char __dummy) {
133
+ inline bool __do_ungetc (int __c, FILE *__fp, char __dummy) {
134
134
if (ungetc (__c, __fp) == EOF)
135
135
return false ;
136
136
return true ;
137
137
}
138
138
#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
139
- static bool __do_ungetc (std::wint_t __c, FILE *__fp, wchar_t __dummy) {
139
+ inline bool __do_ungetc (std::wint_t __c, FILE *__fp, wchar_t __dummy) {
140
140
if (ungetwc (__c, __fp) == WEOF)
141
141
return false ;
142
142
return true ;
@@ -324,13 +324,13 @@ __stdoutbuf<_CharT>::__stdoutbuf(FILE* __fp, state_type* __st)
324
324
__always_noconv_ = true ;
325
325
}
326
326
327
- static bool __do_fputc (char __c, FILE* __fp) {
327
+ inline bool __do_fputc (char __c, FILE* __fp) {
328
328
if (fwrite (&__c, sizeof (__c), 1 , __fp) != 1 )
329
329
return false ;
330
330
return true ;
331
331
}
332
332
#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
333
- static bool __do_fputc (wchar_t __c, FILE* __fp) {
333
+ inline bool __do_fputc (wchar_t __c, FILE* __fp) {
334
334
// fputwc works regardless of wide/narrow mode of stdout, while
335
335
// fwrite of wchar_t only works if the stream actually has been set
336
336
// into wide mode.
0 commit comments