Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
b113c7b7
Unverified
Commit
b113c7b7
authored
Nov 02, 2016
by
George Marques
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename WINRT_ENABLED to UWP_ENABLED
parent
fb5a73a3
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
30 additions
and
30 deletions
+30
-30
ip_unix.cpp
drivers/unix/ip_unix.cpp
+2
-2
socket_helpers.h
drivers/unix/socket_helpers.h
+1
-1
dir_access_windows.cpp
drivers/windows/dir_access_windows.cpp
+1
-1
file_access_windows.cpp
drivers/windows/file_access_windows.cpp
+1
-1
mutex_windows.cpp
drivers/windows/mutex_windows.cpp
+1
-1
semaphore_windows.cpp
drivers/windows/semaphore_windows.cpp
+1
-1
shell_windows.cpp
drivers/windows/shell_windows.cpp
+1
-1
thread_windows.cpp
drivers/windows/thread_windows.cpp
+1
-1
input_default.cpp
main/input_default.cpp
+1
-1
detect.py
platform/uwp/detect.py
+1
-1
thread_uwp.h
platform/uwp/thread_uwp.h
+1
-1
win32.c
thirdparty/enet/win32.c
+3
-3
rand_win.c
thirdparty/openssl/crypto/rand/rand_win.c
+5
-5
dtls1.h
thirdparty/openssl/openssl/dtls1.h
+1
-1
uwp.cpp
thirdparty/openssl/uwp.cpp
+2
-2
uwp_fix.patch
thirdparty/openssl/uwp_fix.patch
+6
-6
RtAudio.h
thirdparty/rtaudio/RtAudio.h
+1
-1
No files found.
drivers/unix/ip_unix.cpp
View file @
b113c7b7
...
...
@@ -40,7 +40,7 @@
#ifndef AI_V4MAPPED
#define AI_V4MAPPED 0x00000800
#endif
#ifdef
WINRT
_ENABLED
#ifdef
UWP
_ENABLED
#include <ws2tcpip.h>
#include <winsock2.h>
#include <windows.h>
...
...
@@ -124,7 +124,7 @@ IP_Address IP_Unix::_resolve_hostname(const String& p_hostname, IP_Address::Addr
#if defined(WINDOWS_ENABLED)
#if defined(
WINRT
_ENABLED)
#if defined(
UWP
_ENABLED)
void
IP_Unix
::
get_local_addresses
(
List
<
IP_Address
>
*
r_addresses
)
const
{
...
...
drivers/unix/socket_helpers.h
View file @
b113c7b7
...
...
@@ -10,7 +10,7 @@
#endif
#endif
#ifdef
WINRT
_ENABLED
#ifdef
UWP
_ENABLED
#define in6addr_any IN6ADDR_ANY_INIT
#endif
...
...
drivers/windows/dir_access_windows.cpp
View file @
b113c7b7
...
...
@@ -349,7 +349,7 @@ DirAccessWindows::DirAccessWindows() {
drive_count
=
0
;
#ifdef
WINRT
_ENABLED
#ifdef
UWP
_ENABLED
Windows
::
Storage
::
StorageFolder
^
install_folder
=
Windows
::
ApplicationModel
::
Package
::
Current
->
InstalledLocation
;
change_dir
(
install_folder
->
Path
->
Data
());
...
...
drivers/windows/file_access_windows.cpp
View file @
b113c7b7
...
...
@@ -125,7 +125,7 @@ void FileAccessWindows::close() {
bool
rename_error
;
#ifdef
WINRT
_ENABLED
#ifdef
UWP
_ENABLED
// WinRT has no PathFileExists, so we check attributes instead
DWORD
fileAttr
;
...
...
drivers/windows/mutex_windows.cpp
View file @
b113c7b7
...
...
@@ -81,7 +81,7 @@ MutexWindows::MutexWindows() {
#ifdef WINDOWS_USE_MUTEX
mutex
=
CreateMutex
(
NULL
,
FALSE
,
NULL
);
#else
#ifdef
WINRT
_ENABLED
#ifdef
UWP
_ENABLED
InitializeCriticalSectionEx
(
&
mutex
,
0
,
0
);
#else
InitializeCriticalSection
(
&
mutex
);
...
...
drivers/windows/semaphore_windows.cpp
View file @
b113c7b7
...
...
@@ -71,7 +71,7 @@ void SemaphoreWindows::make_default() {
SemaphoreWindows
::
SemaphoreWindows
()
{
#ifdef
WINRT
_ENABLED
#ifdef
UWP
_ENABLED
semaphore
=
CreateSemaphoreEx
(
NULL
,
0
,
...
...
drivers/windows/shell_windows.cpp
View file @
b113c7b7
...
...
@@ -28,7 +28,7 @@
/*************************************************************************/
#ifdef WINDOWS_ENABLED
#ifdef
WINRT
_ENABLED
#ifdef
UWP
_ENABLED
// Use Launcher class on windows 8
...
...
drivers/windows/thread_windows.cpp
View file @
b113c7b7
...
...
@@ -28,7 +28,7 @@
/*************************************************************************/
#include "thread_windows.h"
#if defined(WINDOWS_ENABLED) && !defined(
WINRT
_ENABLED)
#if defined(WINDOWS_ENABLED) && !defined(
UWP
_ENABLED)
#include "os/memory.h"
...
...
main/input_default.cpp
View file @
b113c7b7
...
...
@@ -739,7 +739,7 @@ static const char *s_ControllerMappings [] =
"c2a94d6963726f736f66742058626f78,Wireless X360 Controller,leftx:a0,lefty:a1,dpdown:b14,rightstick:b10,rightshoulder:b5,rightx:a3,start:b7,righty:a4,dpleft:b11,lefttrigger:a2,x:b2,dpup:b13,back:b6,leftstick:b9,leftshoulder:b4,y:b3,a:b0,dpright:b12,righttrigger:a5,b:b1,"
,
#endif
#ifdef
WINRT
_ENABLED
#ifdef
UWP
_ENABLED
"__WINRT_GAMEPAD__,Xbox Controller,a:b2,b:b3,x:b4,y:b5,start:b0,back:b1,leftstick:b12,rightstick:b13,leftshoulder:b10,rightshoulder:b11,dpup:b6,dpdown:b7,dpleft:b8,dpright:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,"
,
#endif
NULL
...
...
platform/uwp/detect.py
View file @
b113c7b7
...
...
@@ -139,7 +139,7 @@ def configure(env):
env
[
"OBJSUFFIX"
]
=
"."
+
arch
+
env
[
"OBJSUFFIX"
]
env
[
"LIBSUFFIX"
]
=
"."
+
arch
+
env
[
"LIBSUFFIX"
]
env
.
Append
(
CCFLAGS
=
[
'/D
WINRT
_ENABLED'
])
env
.
Append
(
CCFLAGS
=
[
'/D
UWP
_ENABLED'
])
env
.
Append
(
CCFLAGS
=
[
'/DWINDOWS_ENABLED'
])
env
.
Append
(
CCFLAGS
=
[
'/DTYPED_METHOD_BIND'
])
...
...
platform/uwp/thread_uwp.h
View file @
b113c7b7
...
...
@@ -29,7 +29,7 @@
#ifndef THREAD_WINRT_H
#define THREAD_WINRT_H
#ifdef
WINRT
_ENABLED
#ifdef
UWP
_ENABLED
#include "os/thread.h"
...
...
thirdparty/enet/win32.c
View file @
b113c7b7
...
...
@@ -28,7 +28,7 @@ enet_initialize (void)
return
-
1
;
}
#ifndef
WINRT
_ENABLED
#ifndef
UWP
_ENABLED
timeBeginPeriod
(
1
);
#endif
...
...
@@ -38,14 +38,14 @@ enet_initialize (void)
void
enet_deinitialize
(
void
)
{
#ifndef
WINRT
_ENABLED
#ifndef
UWP
_ENABLED
timeEndPeriod
(
1
);
#endif
WSACleanup
();
}
#ifdef
WINRT
_ENABLED
#ifdef
UWP
_ENABLED
enet_uint32
timeGetTime
()
{
ULONGLONG
ticks
=
GetTickCount64
();
...
...
thirdparty/openssl/crypto/rand/rand_win.c
View file @
b113c7b7
...
...
@@ -118,7 +118,7 @@
# ifndef _WIN32_WINNT
# define _WIN32_WINNT 0x0400
# endif
#ifndef
WINRT
_ENABLED
#ifndef
UWP
_ENABLED
# include <wincrypt.h>
# include <tlhelp32.h>
#endif
...
...
@@ -163,7 +163,7 @@ typedef struct tagCURSORINFO {
# define CURSOR_SHOWING 0x00000001
# endif
/* CURSOR_SHOWING */
# if !defined(OPENSSL_SYS_WINCE) && !defined(
WINRT
_ENABLED)
# if !defined(OPENSSL_SYS_WINCE) && !defined(
UWP
_ENABLED)
typedef
BOOL
(
WINAPI
*
CRYPTACQUIRECONTEXTW
)
(
HCRYPTPROV
*
,
LPCWSTR
,
LPCWSTR
,
DWORD
,
DWORD
);
typedef
BOOL
(
WINAPI
*
CRYPTGENRANDOM
)
(
HCRYPTPROV
,
DWORD
,
BYTE
*
);
...
...
@@ -198,7 +198,7 @@ typedef NET_API_STATUS(NET_API_FUNCTION *NETFREE) (LPBYTE);
# endif
/* 1 */
# endif
/* !OPENSSL_SYS_WINCE */
#if !defined(
WINRT
_ENABLED)
#if !defined(
UWP
_ENABLED)
int
RAND_poll
(
void
)
{
MEMORYSTATUS
m
;
...
...
@@ -583,7 +583,7 @@ int RAND_poll(void)
return
(
1
);
}
#endif //
WINRT
_ENABLED
#endif //
UWP
_ENABLED
int
RAND_event
(
UINT
iMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
...
...
@@ -687,7 +687,7 @@ static void readtimer(void)
static
void
readscreen
(
void
)
{
# if !defined(OPENSSL_SYS_WINCE) && !defined(OPENSSL_SYS_WIN32_CYGWIN) && !defined(
WINRT
_ENABLED)
# if !defined(OPENSSL_SYS_WINCE) && !defined(OPENSSL_SYS_WIN32_CYGWIN) && !defined(
UWP
_ENABLED)
HDC
hScrDC
;
/* screen DC */
HBITMAP
hBitmap
;
/* handle for our bitmap */
BITMAP
bm
;
/* bitmap properties */
...
...
thirdparty/openssl/openssl/dtls1.h
View file @
b113c7b7
...
...
@@ -81,7 +81,7 @@
# include <sys/time.h>
# endif
# endif
#ifdef
WINRT
_ENABLED
#ifdef
UWP
_ENABLED
#include <winsock2.h>
#endif
...
...
thirdparty/openssl/uwp.cpp
View file @
b113c7b7
...
...
@@ -44,7 +44,7 @@ int RAND_poll(void)
return
1
;
}
#if defined(
WINRT
_ENABLED)
#if defined(
UWP
_ENABLED)
extern
"C"
{
#include<stdio.h>
...
...
@@ -152,4 +152,4 @@ extern "C"
void
*
OPENSSL_UplinkTable
[
26
]
=
{
0
};
}
//extern C
#endif
/*defined(
WINRT
_ENABLED)*/
#endif
/*defined(
UWP
_ENABLED)*/
thirdparty/openssl/uwp_fix.patch
View file @
b113c7b7
...
...
@@ -6,7 +6,7 @@ index 06670ae..70fd52a 100644
# ifndef _WIN32_WINNT
# define _WIN32_WINNT 0x0400
# endif
+#ifndef
WINRT
_ENABLED
+#ifndef
UWP
_ENABLED
# include <wincrypt.h>
# include <tlhelp32.h>
+#endif
...
...
@@ -18,7 +18,7 @@ index 06670ae..70fd52a 100644
# endif /* CURSOR_SHOWING */
-# if !defined(OPENSSL_SYS_WINCE)
+# if !defined(OPENSSL_SYS_WINCE) && !defined(
WINRT
_ENABLED)
+# if !defined(OPENSSL_SYS_WINCE) && !defined(
UWP
_ENABLED)
typedef BOOL(WINAPI *CRYPTACQUIRECONTEXTW) (HCRYPTPROV *, LPCWSTR, LPCWSTR,
DWORD, DWORD);
typedef BOOL(WINAPI *CRYPTGENRANDOM) (HCRYPTPROV, DWORD, BYTE *);
...
...
@@ -26,7 +26,7 @@ index 06670ae..70fd52a 100644
# endif /* 1 */
# endif /* !OPENSSL_SYS_WINCE */
+#if !defined(
WINRT
_ENABLED)
+#if !defined(
UWP
_ENABLED)
int RAND_poll(void)
{
MEMORYSTATUS m;
...
...
@@ -34,7 +34,7 @@ index 06670ae..70fd52a 100644
return (1);
}
+#endif //
WINRT
_ENABLED
+#endif //
UWP
_ENABLED
+
int RAND_event(UINT iMsg, WPARAM wParam, LPARAM lParam)
{
...
...
@@ -44,7 +44,7 @@ index 06670ae..70fd52a 100644
static void readscreen(void)
{
-# if !defined(OPENSSL_SYS_WINCE) && !defined(OPENSSL_SYS_WIN32_CYGWIN)
+# if !defined(OPENSSL_SYS_WINCE) && !defined(OPENSSL_SYS_WIN32_CYGWIN) && !defined(
WINRT
_ENABLED)
+# if !defined(OPENSSL_SYS_WINCE) && !defined(OPENSSL_SYS_WIN32_CYGWIN) && !defined(
UWP
_ENABLED)
HDC hScrDC; /* screen DC */
HBITMAP hBitmap; /* handle for our bitmap */
BITMAP bm; /* bitmap properties */
...
...
@@ -56,7 +56,7 @@ index 64ad3c8..a58aca2 100644
# include <sys/time.h>
# endif
# endif
+#ifdef
WINRT
_ENABLED
+#ifdef
UWP
_ENABLED
+#include <winsock2.h>
+#endif
...
...
thirdparty/rtaudio/RtAudio.h
View file @
b113c7b7
...
...
@@ -7,7 +7,7 @@
#elif defined(UNIX_ENABLED)
#define __LINUX_ALSA__
#elif defined(WINDOWS_ENABLED)
#if defined(
WINRT
_ENABLED)
#if defined(
UWP
_ENABLED)
#define __RTAUDIO_DUMMY__
#else
#define __WINDOWS_DS__
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment