2
0
mirror of https://github.com/wolfpld/tracy synced 2026-01-19 04:52:09 +00:00

Fix clash with winapi define crap.

This commit is contained in:
Bartosz Taudul
2025-12-30 14:49:23 +01:00
parent 4661233904
commit 9016911a04
4 changed files with 4 additions and 4 deletions

View File

@@ -658,7 +658,7 @@ void TracyLlm::UpdateModels()
void TracyLlm::ResetChat()
{
auto userName = GetUserFullName();
if( !userName ) userName = GetUserName();
if( !userName ) userName = GetUserLogin();
auto systemPrompt = std::string( m_systemPrompt->data(), m_systemPrompt->size() );

View File

@@ -597,7 +597,7 @@ static const char* GetHostInfo()
InitWinSock();
#endif
const char* user = GetUserName();
const char* user = GetUserLogin();
char hostname[512] = {};
gethostname( hostname, sizeof( hostname ) );
ptr += sprintf( ptr, "User: %s@%s", user, hostname );

View File

@@ -338,7 +338,7 @@ TRACY_API const char* GetEnvVar( const char* name )
#endif
}
TRACY_API const char* GetUserName()
TRACY_API const char* GetUserLogin()
{
#if defined _WIN32
# if defined TRACY_WIN32_NO_DESKTOP

View File

@@ -37,7 +37,7 @@ TRACY_API void SetThreadNameWithHint( const char* name, int32_t groupHint );
TRACY_API const char* GetThreadName( uint32_t id );
TRACY_API const char* GetEnvVar( const char* name );
TRACY_API const char* GetUserName();
TRACY_API const char* GetUserLogin();
TRACY_API const char* GetUserFullName();
}