mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-26 09:18:37 +09:00
Issue #1751 -- Remove XP_MACOSX conditionals and support files from /xpcom
This commit is contained in:
parent
ccf9e5f54b
commit
df94ccb22c
40 changed files with 27 additions and 2812 deletions
|
|
@ -34,7 +34,7 @@
|
|||
#include "nsString.h"
|
||||
#endif
|
||||
|
||||
#if defined(XP_MACOSX) || defined(__DragonFly__) || defined(__FreeBSD__) \
|
||||
#if defined(__DragonFly__) || defined(__FreeBSD__) \
|
||||
|| defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
#include <stdbool.h>
|
||||
#include <unistd.h>
|
||||
|
|
@ -58,9 +58,7 @@
|
|||
#define KINFO_PROC struct kinfo_proc
|
||||
#endif
|
||||
|
||||
#if defined(XP_MACOSX)
|
||||
#define KP_FLAGS kp_proc.p_flag
|
||||
#elif defined(__DragonFly__)
|
||||
#if defined(__DragonFly__)
|
||||
#define KP_FLAGS kp_flags
|
||||
#elif defined(__FreeBSD__)
|
||||
#define KP_FLAGS ki_flag
|
||||
|
|
@ -164,7 +162,7 @@ nsDebugImpl::GetIsDebuggerAttached(bool* aResult)
|
|||
|
||||
#if defined(XP_WIN)
|
||||
*aResult = ::IsDebuggerPresent();
|
||||
#elif defined(XP_MACOSX) || defined(__DragonFly__) || defined(__FreeBSD__) \
|
||||
#elif defined(__DragonFly__) || defined(__FreeBSD__) \
|
||||
|| defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
// Specify the info we're looking for
|
||||
int mib[] = {
|
||||
|
|
@ -426,8 +424,6 @@ RealBreak()
|
|||
{
|
||||
#if defined(_WIN32)
|
||||
::DebugBreak();
|
||||
#elif defined(XP_MACOSX)
|
||||
raise(SIGTRAP);
|
||||
#elif defined(__GNUC__) && (defined(__i386__) || defined(__i386) || defined(__x86_64__))
|
||||
asm("int $3");
|
||||
#elif defined(__arm__)
|
||||
|
|
@ -511,12 +507,6 @@ Break(const char* aMsg)
|
|||
}
|
||||
|
||||
RealBreak();
|
||||
#elif defined(XP_MACOSX)
|
||||
/* Note that we put this Mac OS X test above the GNUC/x86 test because the
|
||||
* GNUC/x86 test is also true on Intel Mac OS X and we want the PPC/x86
|
||||
* impls to be the same.
|
||||
*/
|
||||
RealBreak();
|
||||
#elif defined(__GNUC__) && (defined(__i386__) || defined(__i386) || defined(__x86_64__))
|
||||
RealBreak();
|
||||
#elif defined(__arm__)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue