diff --git a/Minecraft.Client/Chunk.cpp b/Minecraft.Client/Chunk.cpp index b9e9fd3e..e3419e4b 100644 --- a/Minecraft.Client/Chunk.cpp +++ b/Minecraft.Client/Chunk.cpp @@ -994,7 +994,7 @@ float Chunk::squishedDistanceToSqr(shared_ptr player) return xd * xd + yd * yd + zd * zd; } -__attribute__((no_profile_instrument_function)) +NO_PROFILE_INSTRUMENT void Chunk::reset() { if( assigned ) diff --git a/Minecraft.Client/extraX64client.h b/Minecraft.Client/extraX64client.h index 0ba6980c..7afb362b 100644 --- a/Minecraft.Client/extraX64client.h +++ b/Minecraft.Client/extraX64client.h @@ -1,6 +1,14 @@ #pragma once +#if defined(__clang__) +#define NO_PROFILE_INSTRUMENT __attribute__((no_profile_instrument_function)) +#elif defined(__GNUC__) && !defined(__clang__) +#define NO_PROFILE_INSTRUMENT +#else +#define NO_PROFILE_INSTRUMENT +#endif + typedef enum _XBACKGROUND_DOWNLOAD_MODE { XBACKGROUND_DOWNLOAD_MODE_ALWAYS_ALLOW = 1,