M
Michael B Allen
Does _REENTRANT mean that all of your code has to be reentrant? If I do:
#if __USE_UNIX98
mbstate_t mb;
...
mbrtowc(..., &mb)
#else
mbtowc(...)
#endif
Should I stick a #ifndef _REENTRANT error in there if the reentrant
version of mbrtowc isn't available? I don't know in advance that this
function will be called by multiple threads. What would you do in this
case?
Mike
#if __USE_UNIX98
mbstate_t mb;
...
mbrtowc(..., &mb)
#else
mbtowc(...)
#endif
Should I stick a #ifndef _REENTRANT error in there if the reentrant
version of mbrtowc isn't available? I don't know in advance that this
function will be called by multiple threads. What would you do in this
case?
Mike