fix pgo error on msvc

This commit is contained in:
DrPerkyLegit committed 2026-10-26 12:00:18 -04:00
1 parent 748c959a88
commit dd3d2f2c15
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -994,7 +994,7 @@ float Chunk::squishedDistanceToSqr(shared_ptr<Entity> player)
return xd * xd + yd * yd + zd * zd;
}
__attribute__((no_profile_instrument_function))
NO_PROFILE_INSTRUMENT
void Chunk::reset()
{
if( assigned )
+8
View File
@@ -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,