mirror of
https://github.com/curl/curl.git
synced 2026-07-25 02:37:18 +03:00
tidy-up: rename CURL_WINDOWS_APP to CURL_WINDOWS_UWP
Rename internal macro to make its purpose more obvious. After this patch `grep -i uwp` shows all the code related to UWP. Ref: https://curl.se/mail/lib-2024-09/0014.html Closes #14881
This commit is contained in:
parent
445fb81237
commit
bc2f72b9ae
20 changed files with 33 additions and 33 deletions
|
|
@ -66,7 +66,7 @@ unsigned int get_terminal_columns(void)
|
|||
struct winsize ts;
|
||||
if(!ioctl(STDIN_FILENO, TIOCGWINSZ, &ts))
|
||||
cols = (int)ts.ws_col;
|
||||
#elif defined(_WIN32) && !defined(CURL_WINDOWS_APP)
|
||||
#elif defined(_WIN32) && !defined(CURL_WINDOWS_UWP)
|
||||
{
|
||||
HANDLE stderr_hnd = GetStdHandle(STD_ERROR_HANDLE);
|
||||
CONSOLE_SCREEN_BUFFER_INFO console_info;
|
||||
|
|
|
|||
|
|
@ -621,7 +621,7 @@ CURLcode FindWin32CACert(struct OperationConfig *config,
|
|||
{
|
||||
CURLcode result = CURLE_OK;
|
||||
|
||||
#ifdef CURL_WINDOWS_APP
|
||||
#ifdef CURL_WINDOWS_UWP
|
||||
(void)config;
|
||||
(void)backend;
|
||||
(void)bundle_file;
|
||||
|
|
@ -712,7 +712,7 @@ cleanup:
|
|||
|
||||
bool tool_term_has_bold;
|
||||
|
||||
#ifndef CURL_WINDOWS_APP
|
||||
#ifndef CURL_WINDOWS_UWP
|
||||
/* The terminal settings to restore on exit */
|
||||
static struct TerminalSettings {
|
||||
HANDLE hStdOut;
|
||||
|
|
@ -795,7 +795,7 @@ CURLcode win32_init(void)
|
|||
|
||||
QueryPerformanceFrequency(&tool_freq);
|
||||
|
||||
#ifndef CURL_WINDOWS_APP
|
||||
#ifndef CURL_WINDOWS_UWP
|
||||
init_terminal();
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ int getfiletime(const char *filename, struct GlobalConfig *global,
|
|||
/* Windows stat() may attempt to adjust the Unix GMT file time by a daylight
|
||||
saving time offset and since it is GMT that is bad behavior. When we have
|
||||
access to a 64-bit type we can bypass stat and get the times directly. */
|
||||
#if defined(_WIN32) && !defined(CURL_WINDOWS_APP)
|
||||
#if defined(_WIN32) && !defined(CURL_WINDOWS_UWP)
|
||||
HANDLE hfile;
|
||||
TCHAR *tchar_filename = curlx_convert_UTF8_to_tchar((char *)filename);
|
||||
|
||||
|
|
@ -95,7 +95,7 @@ void setfiletime(curl_off_t filetime, const char *filename,
|
|||
/* Windows utime() may attempt to adjust the Unix GMT file time by a daylight
|
||||
saving time offset and since it is GMT that is bad behavior. When we have
|
||||
access to a 64-bit type we can bypass utime and set the times directly. */
|
||||
#if defined(_WIN32) && !defined(CURL_WINDOWS_APP)
|
||||
#if defined(_WIN32) && !defined(CURL_WINDOWS_UWP)
|
||||
HANDLE hfile;
|
||||
TCHAR *tchar_filename = curlx_convert_UTF8_to_tchar((char *)filename);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue