-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve UWP support. #8963
Improve UWP support. #8963
Conversation
…ile GetDriveType GetComputerNameW Some of these were already supported and identical code copied.
…leSize. UWP does not support GetFileSize.
mono/metadata/icall-windows.c
Outdated
@@ -45,25 +45,26 @@ mono_icall_module_get_hinstance (MonoReflectionModuleHandle module) | |||
return (gpointer) (-1); | |||
} | |||
|
|||
#if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) | |||
#if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, you would prefer, this identical content be in icall-windows-uwp.c, instead of icall-windows.c? Identical content and identical if, still used by both classic and uwp?
mono/metadata/w32file-win32.c
Outdated
@@ -393,14 +393,18 @@ mono_w32file_move (const gunichar2 *path, const gunichar2 *dest, gint32 *error) | |||
return result; | |||
} | |||
|
|||
#endif | |||
|
|||
#if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, you would prefer, this identical content be in w32file-win32-uwp.c, instead of w32file-win32.c? Identical content and identical if, still used by both classic and uwp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And a few others ditto.
1ecf0ac
to
c176679
Compare
Introduce fine-grained ifdefs. This should make maintenace of other subsets easier.
@monojenkins build failed |
@monojenkins build Linux AArch64 |
@monojenkins build failed |
* [uwp] UWP supports: ReplaceFile CopyFile LockFile UnlockFile GetDriveType GetComputerNameW Some of these were already supported and identical code copied. * Remove pre-Windows 2000 support -- use GetFileSizeEx instead of GetFileSize. UWP does not support GetFileSize. * Introduce fine-grained ifdefs. This should make maintenance of Win32 subsets easier (see w32subset.h). * Generally the code should be/stay in "classic.c" and the "uwp.c" files can/should go away. The uwp.c files were a medium-sized granularlity of reuse/replace, but the fine-grained ifdefs are better/smaller -- more code reuse. Commit migrated from mono/mono@a48ba55
No description provided.