-
Notifications
You must be signed in to change notification settings - Fork 768
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
emulators/ppsspp: dogfood for-review quality back to the port
Mainly to keep my sanity if a regression pops up. GitHub: hrydgard/native#271 (merged), hrydgard/ppsspp#7772 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@387452 35697150-7ecd-e111-bb59-0022644237b5
- Loading branch information
jbeich
committed
May 26, 2015
1 parent
ebeb5b7
commit d2b7e58
Showing
10 changed files
with
58 additions
and
34 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
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,17 +1,12 @@ | ||
--- Common/StdMutex.h.orig 2015-02-26 20:05:06 UTC | ||
+++ Common/StdMutex.h | ||
@@ -4,12 +4,10 @@ | ||
#define GCC_VER(x,y,z) ((x) * 10000 + (y) * 100 + (z)) | ||
@@ -5,7 +5,8 @@ | ||
#define GCC_VERSION GCC_VER(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__) | ||
|
||
-// Note: __MAC_10_7 is defined on 10.7+. | ||
// Note: __MAC_10_7 is defined on 10.7+. | ||
-#if (GCC_VERSION >= GCC_VER(4,4,0) && __GXX_EXPERIMENTAL_CXX0X__ || defined(__APPLE__)) \ | ||
-/* GCC 4.4 provides <mutex>, except on these platforms: */ \ | ||
- && !defined(ANDROID) && !defined(__SYMBIAN32__) && !defined(MACGNUSTD) | ||
+#if __cplusplus >= 201103L | ||
+#if (__cplusplus >= 201103L || defined(__APPLE__) \ | ||
+ || (GCC_VERSION >= GCC_VER(4,4,0) && __GXX_EXPERIMENTAL_CXX0X__)) \ | ||
/* GCC 4.4 provides <mutex>, except on these platforms: */ \ | ||
&& !defined(ANDROID) && !defined(__SYMBIAN32__) && !defined(MACGNUSTD) | ||
#include <mutex> | ||
#else | ||
+#warning "partial <mutex> implementation" | ||
|
||
// partial <mutex> implementation for win32/pthread | ||
#include <algorithm> |
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,38 +1,58 @@ | ||
--- Core/HLE/sceRtc.cpp.orig 2015-02-26 20:05:06 UTC | ||
+++ Core/HLE/sceRtc.cpp | ||
@@ -459,7 +459,7 @@ static int sceRtcConvertLocalTimeToUTC(u | ||
@@ -459,12 +459,10 @@ static int sceRtcConvertLocalTimeToUTC(u | ||
{ | ||
u64 srcTick = Memory::Read_U64(tickLocalPtr); | ||
// TODO : Let the user select his timezone / daylight saving instead of taking system param ? | ||
-#if defined(__GLIBC__) || defined(BLACKBERRY) || defined(__SYMBIAN32__) | ||
+#if 1 // #else block uses undeclared `timezone' | ||
+#ifndef _MSC_VER | ||
time_t timezone = 0; | ||
tm *time = localtime(&timezone); | ||
srcTick -= time->tm_gmtoff*1000000ULL; | ||
@@ -482,7 +482,7 @@ static int sceRtcConvertUtcToLocalTime(u | ||
-#else | ||
- srcTick -= -timezone * 1000000ULL; | ||
#endif | ||
Memory::Write_U64(srcTick, tickUTCPtr); | ||
} | ||
@@ -482,12 +480,10 @@ static int sceRtcConvertUtcToLocalTime(u | ||
{ | ||
u64 srcTick = Memory::Read_U64(tickUTCPtr); | ||
// TODO : Let the user select his timezone / daylight saving instead of taking system param ? | ||
-#if defined(__GLIBC__) || defined(BLACKBERRY) || defined(__SYMBIAN32__) | ||
+#if 1 // #else block uses undeclared `timezone' | ||
+#ifndef _MSC_VER | ||
time_t timezone = 0; | ||
tm *time = localtime(&timezone); | ||
srcTick += time->tm_gmtoff*1000000ULL; | ||
@@ -1015,7 +1015,7 @@ static int sceRtcFormatRFC2822LocalTime( | ||
-#else | ||
- srcTick += -timezone * 1000000ULL; | ||
#endif | ||
Memory::Write_U64(srcTick, tickLocalPtr); | ||
} | ||
@@ -1015,12 +1011,10 @@ static int sceRtcFormatRFC2822LocalTime( | ||
} | ||
|
||
int tz_seconds; | ||
-#if defined(__GLIBC__) || defined(BLACKBERRY) || defined(__SYMBIAN32__) | ||
+#if 1 // #else block uses undeclared `timezone' | ||
+#ifndef _MSC_VER | ||
time_t timezone = 0; | ||
tm *time = localtime(&timezone); | ||
tz_seconds = time->tm_gmtoff; | ||
@@ -1050,7 +1050,7 @@ static int sceRtcFormatRFC3339LocalTime( | ||
-#else | ||
- tz_seconds = -timezone; | ||
#endif | ||
|
||
DEBUG_LOG(SCERTC, "sceRtcFormatRFC2822LocalTime(%08x, %08x)", outPtr, srcTickPtr); | ||
@@ -1050,12 +1044,10 @@ static int sceRtcFormatRFC3339LocalTime( | ||
} | ||
|
||
int tz_seconds; | ||
-#if defined(__GLIBC__) || defined(BLACKBERRY) || defined(__SYMBIAN32__) | ||
+#if 1 // #else block uses undeclared `timezone' | ||
+#ifndef _MSC_VER | ||
time_t timezone = 0; | ||
tm *time = localtime(&timezone); | ||
tz_seconds = time->tm_gmtoff; | ||
-#else | ||
- tz_seconds = -timezone; | ||
#endif | ||
|
||
DEBUG_LOG(SCERTC, "sceRtcFormatRFC3339LocalTime(%08x, %08x)", outPtr, srcTickPtr); |
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
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
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,12 +1,11 @@ | ||
--- UI/NativeApp.cpp.orig 2015-02-26 20:05:06 UTC | ||
+++ UI/NativeApp.cpp | ||
@@ -291,7 +291,8 @@ void NativeInit(int argc, const char *ar | ||
@@ -295,7 +295,7 @@ void NativeInit(int argc, const char *ar | ||
#elif defined(BLACKBERRY) || defined(IOS) | ||
// Packed assets are included in app | ||
VFSRegister("", new DirectoryAssetReader(external_directory)); | ||
-#elif defined(__APPLE__) || (defined(__linux__) && !defined(ANDROID)) | ||
+#elif defined(__APPLE__) || (defined(__linux__) && !defined(ANDROID)) || \ | ||
+ defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) | ||
+#elif !defined(MOBILE_DEVICE) && !defined(_WIN32) | ||
VFSRegister("", new DirectoryAssetReader((File::GetExeDirectory() + "assets/").c_str())); | ||
VFSRegister("", new DirectoryAssetReader((File::GetExeDirectory()).c_str())); | ||
VFSRegister("", new DirectoryAssetReader("/usr/share/ppsspp/assets/")); |
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
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
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
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,10 +1,10 @@ | ||
--- native/net/http_server.cpp.orig 2015-02-23 23:22:58 UTC | ||
+++ native/net/http_server.cpp | ||
@@ -12,6 +12,7 @@ | ||
@@ -11,6 +11,7 @@ | ||
#include <sys/socket.h> /* socket definitions */ | ||
#include <sys/types.h> /* socket types */ | ||
#include <sys/wait.h> /* for waitpid() */ | ||
#include <arpa/inet.h> /* inet (3) funtions */ | ||
+#include <netinet/in.h> /* struct sockaddr_in */ | ||
#include <arpa/inet.h> /* inet (3) funtions */ | ||
#include <unistd.h> /* misc. UNIX functions */ | ||
|
||
#endif |