mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-03 16:02:51 +02:00
Update to v096r01 release.
byuu says: Changelog: - restructured the project and removed a whole bunch of old/dead directives from higan/GNUmakefile - huge amounts of work on hiro/cocoa (compiles but ~70% of the functionality is commented out) - fixed a masking error in my ARM CPU disassembler [Lioncash] - SFC: decided to change board cic=(411,413) back to board region=(ntsc,pal) ... the former was too obtuse If you rename Boolean (it's a problem with an include from ruby, not from hiro) and disable all the ruby drivers, you can compile an OS X binary, but obviously it's not going to do anything. It's a boring WIP, I just wanted to push out the project structure change now at the start of this WIP cycle.
This commit is contained in:
@@ -94,7 +94,7 @@ endif
|
||||
ifeq ($(threaded),true)
|
||||
ifneq ($(filter $(platform),linux bsd),)
|
||||
flags += -pthread
|
||||
link += -lrt
|
||||
link += -pthread -lrt
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@@ -98,10 +98,17 @@ namespace Math {
|
||||
#define dllexport
|
||||
#endif
|
||||
|
||||
#if defined(PLATFORM_MACOSX)
|
||||
#define MSG_NOSIGNAL 0
|
||||
#endif
|
||||
|
||||
#if defined(COMPILER_CLANG) || defined(COMPILER_GCC)
|
||||
#define neverinline __attribute__((noinline))
|
||||
#define alwaysinline inline __attribute__((always_inline))
|
||||
#if !defined(PLATFORM_MACOSX)
|
||||
//todo: we want this prefix; but it causes compilation errors
|
||||
#define deprecated __attribute__((deprecated))
|
||||
#endif
|
||||
#elif defined(COMPILER_VISUALCPP)
|
||||
#define neverinline __declspec(noinline)
|
||||
#define alwaysinline inline __forceinline
|
||||
|
@@ -33,6 +33,7 @@ template<typename... P> inline auto execute(const string& name, P&&... p) -> str
|
||||
*argp++ = nullptr;
|
||||
|
||||
dup2(fd[1], STDOUT_FILENO);
|
||||
dup2(fd[1], STDERR_FILENO);
|
||||
close(fd[0]);
|
||||
close(fd[1]);
|
||||
execvp(name, (char* const*)argv);
|
||||
@@ -117,8 +118,8 @@ template<typename... P> inline auto execute(const string& name, P&&... p) -> str
|
||||
while(true) {
|
||||
DWORD exitCode;
|
||||
GetExitCodeProcess(pi.hProcess, &exitCode);
|
||||
if(exitCode != STILL_ACTIVE) break;
|
||||
Sleep(1);
|
||||
if(exitCode != STILL_ACTIVE) break;
|
||||
}
|
||||
|
||||
string result;
|
||||
|
@@ -79,7 +79,7 @@ auto integer(intmax value, long precision, char padchar) -> string {
|
||||
char* p = buffer.get();
|
||||
|
||||
bool negative = value < 0;
|
||||
value = abs(value);
|
||||
if(negative) value = -value; //make positive
|
||||
uint size = 0;
|
||||
do {
|
||||
p[size++] = '0' + (value % 10);
|
||||
|
Reference in New Issue
Block a user