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:
@@ -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() );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user