diff options
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibC/arch/x86_64/memset.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibC/math.cpp | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibDebug/Dwarf/DwarfInfo.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibEDID/EDID.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibGfx/AntiAliasingPainter.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibGfx/Filters/FastBoxBlurFilter.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibGfx/Filters/StackBlurFilter.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibGfx/Painter.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibGfx/VectorN.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/NumberConstructor.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibX86/Instruction.cpp | 2 |
11 files changed, 12 insertions, 12 deletions
diff --git a/Userland/Libraries/LibC/arch/x86_64/memset.cpp b/Userland/Libraries/LibC/arch/x86_64/memset.cpp index a5e58a2d5b..8ff6667e6f 100644 --- a/Userland/Libraries/LibC/arch/x86_64/memset.cpp +++ b/Userland/Libraries/LibC/arch/x86_64/memset.cpp @@ -41,7 +41,7 @@ namespace { } } -#if !defined(__clang__) && !defined(_DYNAMIC_LOADER) +#if !defined(AK_COMPILER_CLANG) && !defined(_DYNAMIC_LOADER) [[gnu::ifunc("resolve_memset")]] void* memset(void*, int, size_t); #else // DynamicLoader can't self-relocate IFUNCs. diff --git a/Userland/Libraries/LibC/math.cpp b/Userland/Libraries/LibC/math.cpp index 9472fff710..df1e409ce1 100644 --- a/Userland/Libraries/LibC/math.cpp +++ b/Userland/Libraries/LibC/math.cpp @@ -19,7 +19,7 @@ #include <stdint.h> #include <stdlib.h> -#ifdef __clang__ +#if defined(AK_COMPILER_CLANG) # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wdouble-promotion" #endif @@ -1148,6 +1148,6 @@ float nearbyintf(float value) NOEXCEPT } } -#ifdef __clang__ +#if defined(AK_COMPILER_CLANG) # pragma clang diagnostic pop #endif diff --git a/Userland/Libraries/LibDebug/Dwarf/DwarfInfo.cpp b/Userland/Libraries/LibDebug/Dwarf/DwarfInfo.cpp index 466b824b24..12826a662f 100644 --- a/Userland/Libraries/LibDebug/Dwarf/DwarfInfo.cpp +++ b/Userland/Libraries/LibDebug/Dwarf/DwarfInfo.cpp @@ -64,7 +64,7 @@ void DwarfInfo::populate_compilation_units() // HACK: Clang generates line programs for embedded resource assembly files, but not compile units. // Meaning that for graphical applications, some line info data would be unread, triggering the assertion below. // As a fix, we don't create compilation units for line programs that come from resource files. -#ifdef __clang__ +#if defined(AK_COMPILER_CLANG) if (line_program->source_files().size() == 1 && line_program->source_files()[0].name.view().contains("serenity_icon_"sv)) { debug_info_stream.seek(unit_offset); } else diff --git a/Userland/Libraries/LibEDID/EDID.cpp b/Userland/Libraries/LibEDID/EDID.cpp index aa8c2feb92..0c01e43fa0 100644 --- a/Userland/Libraries/LibEDID/EDID.cpp +++ b/Userland/Libraries/LibEDID/EDID.cpp @@ -23,7 +23,7 @@ namespace EDID { // clang doesn't like passing around pointers to members in packed structures, // even though we're only using them for arithmetic purposes -#ifdef __clang__ +#if defined(AK_COMPILER_CLANG) # pragma clang diagnostic ignored "-Waddress-of-packed-member" #endif diff --git a/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp b/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp index 173983f3b0..45eb0e4ee6 100644 --- a/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp +++ b/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp @@ -5,7 +5,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#if defined(__GNUC__) && !defined(__clang__) +#if defined(AK_COMPILER_GCC) # pragma GCC optimize("O3") #endif diff --git a/Userland/Libraries/LibGfx/Filters/FastBoxBlurFilter.cpp b/Userland/Libraries/LibGfx/Filters/FastBoxBlurFilter.cpp index 5ac41a356c..5aee6dbc9d 100644 --- a/Userland/Libraries/LibGfx/Filters/FastBoxBlurFilter.cpp +++ b/Userland/Libraries/LibGfx/Filters/FastBoxBlurFilter.cpp @@ -4,7 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#if defined(__GNUC__) && !defined(__clang__) +#if defined(AK_COMPILER_GCC) # pragma GCC optimize("O3") #endif diff --git a/Userland/Libraries/LibGfx/Filters/StackBlurFilter.cpp b/Userland/Libraries/LibGfx/Filters/StackBlurFilter.cpp index c7ff7885cd..1ae302536e 100644 --- a/Userland/Libraries/LibGfx/Filters/StackBlurFilter.cpp +++ b/Userland/Libraries/LibGfx/Filters/StackBlurFilter.cpp @@ -5,7 +5,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#if defined(__GNUC__) && !defined(__clang__) +#if defined(AK_COMPILER_GCC) # pragma GCC optimize("O3") #endif diff --git a/Userland/Libraries/LibGfx/Painter.cpp b/Userland/Libraries/LibGfx/Painter.cpp index 84c936e7b8..bfd566709b 100644 --- a/Userland/Libraries/LibGfx/Painter.cpp +++ b/Userland/Libraries/LibGfx/Painter.cpp @@ -36,7 +36,7 @@ #include <LibGfx/TextLayout.h> #include <stdio.h> -#if defined(__GNUC__) && !defined(__clang__) +#if defined(AK_COMPILER_GCC) # pragma GCC optimize("O3") #endif diff --git a/Userland/Libraries/LibGfx/VectorN.h b/Userland/Libraries/LibGfx/VectorN.h index bf8eecc518..0f3f5f38ca 100644 --- a/Userland/Libraries/LibGfx/VectorN.h +++ b/Userland/Libraries/LibGfx/VectorN.h @@ -21,7 +21,7 @@ #define STRINGIFY_HELPER(x) #x #define STRINGIFY(x) STRINGIFY_HELPER(x) -#ifdef __clang__ +#if defined(AK_COMPILER_CLANG) # define UNROLL_LOOP _Pragma(STRINGIFY(unroll)) #else # define UNROLL_LOOP _Pragma(STRINGIFY(GCC unroll(LOOP_UNROLL_N))) diff --git a/Userland/Libraries/LibJS/Runtime/NumberConstructor.cpp b/Userland/Libraries/LibJS/Runtime/NumberConstructor.cpp index 540b8c7414..6b13086b67 100644 --- a/Userland/Libraries/LibJS/Runtime/NumberConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/NumberConstructor.cpp @@ -11,7 +11,7 @@ #include <LibJS/Runtime/NumberConstructor.h> #include <LibJS/Runtime/NumberObject.h> -#ifdef __clang__ +#if defined(AK_COMPILER_CLANG) # define EPSILON_VALUE AK::exp2(-52.) # define MAX_SAFE_INTEGER_VALUE AK::exp2(53.) - 1 # define MIN_SAFE_INTEGER_VALUE -(AK::exp2(53.) - 1) diff --git a/Userland/Libraries/LibX86/Instruction.cpp b/Userland/Libraries/LibX86/Instruction.cpp index d649c1bfb4..e1702209e2 100644 --- a/Userland/Libraries/LibX86/Instruction.cpp +++ b/Userland/Libraries/LibX86/Instruction.cpp @@ -8,7 +8,7 @@ #include <LibX86/Instruction.h> #include <LibX86/Interpreter.h> -#if defined(__GNUC__) && !defined(__clang__) +#if defined(AK_COMPILER_GCC) # pragma GCC optimize("O3") #endif |