1 #ifndef CPPCMS_NOWIDE_CSTDIO_H 2 #define CPPCMS_NOWIDE_CSTDIO_H 6 #include <booster/config.h> 7 #include <booster/nowide/convert.h> 9 #include <booster/config.h> 11 # pragma warning(push) 12 # pragma warning(disable : 4996) 18 #ifndef BOOSTER_WIN_NATIVE 25 #if defined(BOOSTER_WIN_NATIVE) || defined(BOOSTER_DOXYGEN_DOCS) 30 inline FILE *
fopen(
char const *file_name,
char const *mode)
42 inline FILE *
freopen(
char const *file_name,
char const *mode,FILE *stream)
45 return _wfreopen(
convert(file_name).c_str(),
convert(mode).c_str(),stream);
54 inline int rename(
char const *old_name,
char const *new_name)
57 return _wrename(
convert(old_name).c_str(),
convert(new_name).c_str());
66 inline int remove(
char const *name)
69 return _wremove(
convert(name).c_str());
FILE * fopen(char const *file_name, char const *mode)
Definition: cstdio.h:30
BOOSTER_API std::string convert(wchar_t const *s)
FILE * freopen(char const *file_name, char const *mode, FILE *stream)
Definition: cstdio.h:42
int rename(char const *old_name, char const *new_name)
Definition: cstdio.h:54
Booster library namespace. The library that implements Boost Like API in ABI backward compatible way...
Definition: application.h:23
This exception is thrown if invalid UTF-8 or UTF-16 is given as input.
Definition: convert.h:14