From 6a2cbe2842fe4dc170bb4dbb8aa008af7d025f49 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 18 Oct 2017 18:49:50 +0200 Subject: [PATCH] Rename DISABLE_LZ4 to TRACY_DISABLE_LZ4. --- client/TracyProfiler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 9452e957..bc6f39da 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -28,7 +28,7 @@ #include "TracyThread.hpp" #ifdef _DEBUG -# define DISABLE_LZ4 +# define TRACY_DISABLE_LZ4 #endif #ifdef __GNUC__ @@ -158,7 +158,7 @@ void Profiler::Worker() while( m_timeBegin.load( std::memory_order_relaxed ) == 0 ) std::this_thread::sleep_for( std::chrono::milliseconds( 10 ) ); WelcomeMessage welcome; -#ifdef DISABLE_LZ4 +#ifdef TRACY_DISABLE_LZ4 // notify client that lz4 compression is disabled (too slow in debug builds) welcome.lz4 = 0; #else @@ -255,7 +255,7 @@ Profiler::DequeueStatus Profiler::Dequeue( moodycamel::ConsumerToken& token ) bool Profiler::SendData( const char* data, size_t len ) { -#ifdef DISABLE_LZ4 +#ifdef TRACY_DISABLE_LZ4 if( m_sock->Send( data, (int)len ) == -1 ) return false; #else char lz4[LZ4Size + sizeof( lz4sz_t )];