mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 10:00:16 +02:00
CRT: Use DLLEXPORT_FUNC for more functions
Fixes locally defined symbol imported linker warnings.
This commit is contained in:
1 parent
390d5d2fb4
commit
466ee3cbcf
2 files changed
+11
-10
No files matched your search
@@ -51,7 +51,7 @@ void InitEnv() {
|
||||
__attribute__((used, section(".CRT$FEXB"))) void (*_InitEnv)(void) = InitEnv;
|
||||
} // namespace
|
||||
|
||||
char*** __p__environ() {
|
||||
DLLEXPORT_FUNC(char***, __p__environ, ()) {
|
||||
return &EnvArray;
|
||||
}
|
||||
|
||||
|
||||
@@ -120,11 +120,11 @@ int snprintf(char* stream, size_t n, const char* format, ...) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
char* setlocale(int _Category, const char* _Locale) {
|
||||
DLLEXPORT_FUNC(char*, setlocale, (int _Category, const char* _Locale)) {
|
||||
return Locale;
|
||||
}
|
||||
|
||||
int _configthreadlocale(int _Flag) {
|
||||
DLLEXPORT_FUNC(int, _configthreadlocale, (int _Flag)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -138,16 +138,17 @@ DLLEXPORT_FUNC(struct lconv*, localeconv, (void)) {
|
||||
|
||||
DLLEXPORT_FUNC(void, _free_locale, (_locale_t _Locale)) {}
|
||||
|
||||
wint_t btowc(int) {
|
||||
DLLEXPORT_FUNC(wint_t, btowc, (int)) {
|
||||
UNIMPLEMENTED();
|
||||
}
|
||||
|
||||
size_t mbsrtowcs(wchar_t* __restrict__ _Dest, const char** __restrict__ _PSrc, size_t _Count,
|
||||
mbstate_t* __restrict__ _State) __MINGW_ATTRIB_DEPRECATED_SEC_WARN {
|
||||
DLLEXPORT_FUNC(size_t, mbsrtowcs, (wchar_t* __restrict__ _Dest, const char** __restrict__ _PSrc, size_t _Count, mbstate_t* __restrict__ _State))
|
||||
__MINGW_ATTRIB_DEPRECATED_SEC_WARN {
|
||||
UNIMPLEMENTED();
|
||||
}
|
||||
|
||||
size_t mbrtowc(wchar_t* __restrict__ _DstCh, const char* __restrict__ _SrcCh, size_t _SizeInBytes, mbstate_t* __restrict__ _State) {
|
||||
DLLEXPORT_FUNC(size_t, mbrtowc,
|
||||
(wchar_t* __restrict__ _DstCh, const char* __restrict__ _SrcCh, size_t _SizeInBytes, mbstate_t* __restrict__ _State)) {
|
||||
UNIMPLEMENTED();
|
||||
}
|
||||
|
||||
@@ -159,11 +160,11 @@ DLLEXPORT_FUNC(int, _mbtowc_l, (wchar_t* __restrict__ DstCh, const char* __restr
|
||||
return 1;
|
||||
}
|
||||
|
||||
size_t mbrlen(const char* __restrict__ _Ch, size_t _SizeInBytes, mbstate_t* __restrict__ _State) {
|
||||
DLLEXPORT_FUNC(size_t, mbrlen, (const char* __restrict__ _Ch, size_t _SizeInBytes, mbstate_t* __restrict__ _State)) {
|
||||
UNIMPLEMENTED();
|
||||
}
|
||||
|
||||
size_t wcrtomb(char* __restrict__ _Dest, wchar_t _Source, mbstate_t* __restrict__ _State) {
|
||||
DLLEXPORT_FUNC(size_t, wcrtomb, (char* __restrict__ _Dest, wchar_t _Source, mbstate_t* __restrict__ _State)) {
|
||||
UNIMPLEMENTED();
|
||||
}
|
||||
|
||||
@@ -171,7 +172,7 @@ DLLEXPORT_FUNC(errno_t, wcrtomb_s, (size_t* _Retval, char* _Dst, size_t _SizeInB
|
||||
UNIMPLEMENTED();
|
||||
}
|
||||
|
||||
int wctob(wint_t _WCh) {
|
||||
DLLEXPORT_FUNC(int, wctob, (wint_t _WCh)) {
|
||||
UNIMPLEMENTED();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user