forked from kodi-pvr/pvr.iptvsimple
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d86e46a
commit e1b1d8d
Showing
9 changed files
with
31 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- a/src/common/tuklib_physmem.c | ||
+++ b/src/common/tuklib_physmem.c | ||
@@ -79,6 +79,13 @@ tuklib_physmem(void) | ||
uint64_t ret = 0; | ||
|
||
#if defined(_WIN32) || defined(__CYGWIN__) | ||
+#if defined (WINAPI_FAMILY_PARTITION) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) | ||
+ MEMORYSTATUSEX ms; | ||
+ ms.dwLength = sizeof(ms); | ||
+ if(!GlobalMemoryStatusEx(&ms)) | ||
+ return 0; | ||
+ return ms.ullTotalPhys; | ||
+#else | ||
if ((GetVersion() & 0xFF) >= 5) { | ||
// Windows 2000 and later have GlobalMemoryStatusEx() which | ||
// supports reporting values greater than 4 GiB. To keep the | ||
@@ -107,6 +114,7 @@ tuklib_physmem(void) | ||
GlobalMemoryStatus(&meminfo); | ||
ret = meminfo.dwTotalPhys; | ||
} | ||
+#endif | ||
|
||
#elif defined(__OS2__) | ||
unsigned long mem; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-DBUILD_TESTING=OFF -DCREATE_XZ_SYMLINKS=OFF -DCREATE_LZMA_SYMLINKS=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
9717ae363760dedf573dad241420c5fea86256b65bc21d2cf71b2b12f0544f4b | ||
92177bef62c3824b4badc524f8abcce54a20b7dbcfb84cde0a2eb8b49159518c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
xz-utils https://tukaani.org/xz/xz-5.2.4.tar.xz | ||
xz-utils https://tukaani.org/xz/xz-5.4.3.tar.xz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
9717ae363760dedf573dad241420c5fea86256b65bc21d2cf71b2b12f0544f4b | ||
92177bef62c3824b4badc524f8abcce54a20b7dbcfb84cde0a2eb8b49159518c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
xz-utils https://tukaani.org/xz/xz-5.2.4.tar.xz | ||
xz-utils https://tukaani.org/xz/xz-5.4.3.tar.xz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
9717ae363760dedf573dad241420c5fea86256b65bc21d2cf71b2b12f0544f4b | ||
92177bef62c3824b4badc524f8abcce54a20b7dbcfb84cde0a2eb8b49159518c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
xz-utils https://tukaani.org/xz/xz-5.2.4.tar.xz | ||
xz-utils https://tukaani.org/xz/xz-5.4.3.tar.xz |