mirror of
https://github.com/curl/curl.git
synced 2026-08-24 19:03:40 +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
|
|
@ -29,7 +29,7 @@
|
|||
#define NUM_THREADS 100
|
||||
|
||||
#ifdef _WIN32
|
||||
#if defined(_WIN32_WCE) || defined(CURL_WINDOWS_APP)
|
||||
#if defined(_WIN32_WCE) || defined(CURL_WINDOWS_UWP)
|
||||
static DWORD WINAPI run_thread(LPVOID ptr)
|
||||
#else
|
||||
#include <process.h>
|
||||
|
|
@ -47,7 +47,7 @@ static unsigned int WINAPI run_thread(void *ptr)
|
|||
|
||||
CURLcode test(char *URL)
|
||||
{
|
||||
#if defined(_WIN32_WCE) || defined(CURL_WINDOWS_APP)
|
||||
#if defined(_WIN32_WCE) || defined(CURL_WINDOWS_UWP)
|
||||
typedef HANDLE curl_win_thread_handle_t;
|
||||
#else
|
||||
typedef uintptr_t curl_win_thread_handle_t;
|
||||
|
|
@ -78,7 +78,7 @@ CURLcode test(char *URL)
|
|||
for(i = 0; i < tid_count; i++) {
|
||||
curl_win_thread_handle_t th;
|
||||
results[i] = CURL_LAST; /* initialize with invalid value */
|
||||
#if defined(_WIN32_WCE) || defined(CURL_WINDOWS_APP)
|
||||
#if defined(_WIN32_WCE) || defined(CURL_WINDOWS_UWP)
|
||||
th = CreateThread(NULL, 0, run_thread, &results[i], 0, NULL);
|
||||
#else
|
||||
th = _beginthreadex(NULL, 0, run_thread, &results[i], 0, NULL);
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ static size_t write_memory_callback(void *contents, size_t size,
|
|||
|
||||
static
|
||||
#if defined(USE_THREADS_POSIX) || defined(USE_THREADS_WIN32)
|
||||
#if defined(_WIN32_WCE) || defined(CURL_WINDOWS_APP)
|
||||
#if defined(_WIN32_WCE) || defined(CURL_WINDOWS_UWP)
|
||||
DWORD
|
||||
#else
|
||||
unsigned int
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ double tutil_tvdiff_secs(struct timeval newer, struct timeval older)
|
|||
#ifdef _WIN32
|
||||
HMODULE win32_load_system_library(const TCHAR *filename)
|
||||
{
|
||||
#ifdef CURL_WINDOWS_APP
|
||||
#ifdef CURL_WINDOWS_UWP
|
||||
(void)filename;
|
||||
return NULL;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue