Skip to content

Commit e719ef1

Browse files
committed
✨ properly section off windows-specific implementation details
1 parent 5624929 commit e719ef1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/ztd/cuneicode/mcstate.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,14 @@ void cnc_mcstate_set_win32_code_page(cnc_mcstate_t* __state, uint32_t __win32_co
6666
}
6767
__state->__win32_code_page.__indicator = __mc_s_i_win32_code_page;
6868
__state->__win32_code_page.__code_page = __win32_code_page_id;
69+
#if ZTD_IS_ON(ZTD_PLATFORM_WINDOWS)
6970
CPINFOEXW* __codepage_info
7071
= static_cast<CPINFOEXW*>(__state->__win32_code_page.__code_page_info);
7172
if (::ztd::__idk_detail::__windows::__get_codepage_descirptor(
7273
__win32_code_page_id, &__codepage_info)) {
7374
__state->__win32_code_page.__code_page_info = static_cast<void*>(__codepage_info);
7475
}
76+
#endif
7577
}
7678

7779
ZTD_USE(ZTD_C_LANGUAGE_LINKAGE)

0 commit comments

Comments
 (0)