mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +09:00
remove OSX support
This commit is contained in:
parent
bd90dd917f
commit
8fb608b22d
5 changed files with 0 additions and 67 deletions
|
|
@ -297,22 +297,9 @@ typedef long ssize_t;
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#ifndef MOZ_MEMORY_DARWIN
|
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#endif
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#ifdef MOZ_MEMORY_DARWIN
|
|
||||||
#include <libkern/OSAtomic.h>
|
|
||||||
#include <mach/mach_error.h>
|
|
||||||
#include <mach/mach_init.h>
|
|
||||||
#include <mach/vm_map.h>
|
|
||||||
#include <malloc/malloc.h>
|
|
||||||
#ifndef _pthread_self
|
|
||||||
#define _pthread_self() pthread_self()
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "jemalloc_types.h"
|
#include "jemalloc_types.h"
|
||||||
|
|
|
||||||
|
|
@ -826,15 +826,6 @@ nsHttpHandler::InitUserAgentComponents()
|
||||||
PR_smprintf_free(buf);
|
PR_smprintf_free(buf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#elif defined (XP_MACOSX)
|
|
||||||
#if defined(__ppc__)
|
|
||||||
mOscpu.AssignLiteral("PPC Mac OS X");
|
|
||||||
#elif defined(__i386__) || defined(__x86_64__)
|
|
||||||
mOscpu.AssignLiteral("Intel Mac OS X");
|
|
||||||
#endif
|
|
||||||
SInt32 majorVersion = nsCocoaFeatures::macOSVersionMajor();
|
|
||||||
SInt32 minorVersion = nsCocoaFeatures::macOSVersionMinor();
|
|
||||||
mOscpu += nsPrintfCString(" %d.%d", majorVersion, minorVersion);
|
|
||||||
#elif defined (XP_UNIX)
|
#elif defined (XP_UNIX)
|
||||||
struct utsname name;
|
struct utsname name;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -49,21 +49,6 @@ enum class OperatingSystem {
|
||||||
Windows8_1,
|
Windows8_1,
|
||||||
Windows10,
|
Windows10,
|
||||||
Linux,
|
Linux,
|
||||||
OSX,
|
|
||||||
OSX10_5,
|
|
||||||
OSX10_6,
|
|
||||||
OSX10_7,
|
|
||||||
OSX10_8,
|
|
||||||
OSX10_9,
|
|
||||||
OSX10_10,
|
|
||||||
OSX10_11,
|
|
||||||
OSX10_12,
|
|
||||||
OSX10_13,
|
|
||||||
OSX10_14,
|
|
||||||
OSX10_15,
|
|
||||||
OSX10_16,
|
|
||||||
OSX11_0,
|
|
||||||
Ios
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enum VersionComparisonOp {
|
enum VersionComparisonOp {
|
||||||
|
|
|
||||||
|
|
@ -263,30 +263,6 @@ BlacklistOSToOperatingSystem(const nsAString& os)
|
||||||
return OperatingSystem::Windows10;
|
return OperatingSystem::Windows10;
|
||||||
else if (os.EqualsLiteral("Linux"))
|
else if (os.EqualsLiteral("Linux"))
|
||||||
return OperatingSystem::Linux;
|
return OperatingSystem::Linux;
|
||||||
else if (os.EqualsLiteral("Darwin 9"))
|
|
||||||
return OperatingSystem::OSX10_5;
|
|
||||||
else if (os.EqualsLiteral("Darwin 10"))
|
|
||||||
return OperatingSystem::OSX10_6;
|
|
||||||
else if (os.EqualsLiteral("Darwin 11"))
|
|
||||||
return OperatingSystem::OSX10_7;
|
|
||||||
else if (os.EqualsLiteral("Darwin 12"))
|
|
||||||
return OperatingSystem::OSX10_8;
|
|
||||||
else if (os.EqualsLiteral("Darwin 13"))
|
|
||||||
return OperatingSystem::OSX10_9;
|
|
||||||
else if (os.EqualsLiteral("Darwin 14"))
|
|
||||||
return OperatingSystem::OSX10_10;
|
|
||||||
else if (os.EqualsLiteral("Darwin 15"))
|
|
||||||
return OperatingSystem::OSX10_11;
|
|
||||||
else if (os.EqualsLiteral("Darwin 16"))
|
|
||||||
return OperatingSystem::OSX10_12;
|
|
||||||
else if (os.EqualsLiteral("Darwin 17"))
|
|
||||||
return OperatingSystem::OSX10_13;
|
|
||||||
else if (os.EqualsLiteral("Darwin 18"))
|
|
||||||
return OperatingSystem::OSX10_14;
|
|
||||||
else if (os.EqualsLiteral("Darwin 19"))
|
|
||||||
return OperatingSystem::OSX10_15;
|
|
||||||
else if (os.EqualsLiteral("Darwin 20"))
|
|
||||||
return OperatingSystem::OSX11_0;
|
|
||||||
// For historical reasons, "All" in blocklist means "All Windows"
|
// For historical reasons, "All" in blocklist means "All Windows"
|
||||||
else if (os.EqualsLiteral("All"))
|
else if (os.EqualsLiteral("All"))
|
||||||
return OperatingSystem::Windows;
|
return OperatingSystem::Windows;
|
||||||
|
|
|
||||||
|
|
@ -539,12 +539,6 @@ ParseManifest(NSLocationType aType, FileLocation& aFile, char* aBuf,
|
||||||
info.dwMinorVersion);
|
info.dwMinorVersion);
|
||||||
}
|
}
|
||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
#elif defined(MOZ_WIDGET_COCOA)
|
|
||||||
SInt32 majorVersion = nsCocoaFeatures::macOSVersionMajor();
|
|
||||||
SInt32 minorVersion = nsCocoaFeatures::macOSVersionMinor();
|
|
||||||
nsTextFormatter::ssprintf(osVersion, u"%ld.%ld",
|
|
||||||
majorVersion,
|
|
||||||
minorVersion);
|
|
||||||
#elif defined(MOZ_WIDGET_GTK)
|
#elif defined(MOZ_WIDGET_GTK)
|
||||||
nsTextFormatter::ssprintf(osVersion, u"%ld.%ld",
|
nsTextFormatter::ssprintf(osVersion, u"%ld.%ld",
|
||||||
gtk_major_version,
|
gtk_major_version,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue