Showing the changes to codec/decoder/plus/src/welsCodecTrace.cpp (1 of 73 files). Show all
Unified · Split
| @@ -30,7 +30,7 @@ · 29 unmodified lines | |||
| 30 | * | 30 | * |
| 31 | */ | 31 | */ |
| 32 | 32 | ||
| 33 | #ifdef WIN32 | 33 | #ifdef _WIN32 |
| 34 | #include <windows.h> | 34 | #include <windows.h> |
| 35 | #include <tchar.h> | 35 | #include <tchar.h> |
| 36 | #endif | 36 | #endif |
| @@ -180,7 +180,7 @@ int32_t CWelsTraceFile::WriteString (int32_t iLevel, const str_t* pStr) { · 143 unmodified lines | |||
| 180 | } | 180 | } |
| 181 | 181 | ||
| 182 | 182 | ||
| 183 | #ifdef WIN32 | 183 | #ifdef _WIN32 |
| 184 | 184 | ||
| 185 | int32_t CWelsTraceWinDgb::WriteString (int32_t iLevel, const str_t* pStr) { | 185 | int32_t CWelsTraceWinDgb::WriteString (int32_t iLevel, const str_t* pStr) { |
| 186 | OutputDebugStringA (pStr); | 186 | OutputDebugStringA (pStr); |
| @@ -211,7 +211,7 @@ int32_t CWelsCodecTrace::LoadWelsTraceModule() { · 24 unmodified lines | |||
| 211 | m_fpWarnTrace = welsStderrTrace<WELS_LOG_WARNING>; | 211 | m_fpWarnTrace = welsStderrTrace<WELS_LOG_WARNING>; |
| 212 | m_fpErrorTrace = welsStderrTrace<WELS_LOG_ERROR>; | 212 | m_fpErrorTrace = welsStderrTrace<WELS_LOG_ERROR>; |
| 213 | #else | 213 | #else |
| 214 | #if defined WIN32 | 214 | #if defined _WIN32 |
| 215 | HMODULE hHandle = ::LoadLibrary ("welstrace.dll"); | 215 | HMODULE hHandle = ::LoadLibrary ("welstrace.dll"); |
| 216 | // HMODULE handle = ::LoadLibrary("contrace.dll"); // for c7 trace | 216 | // HMODULE handle = ::LoadLibrary("contrace.dll"); // for c7 trace |
| 217 | if (NULL == hHandle) | 217 | if (NULL == hHandle) |
| @@ -293,7 +293,7 @@ int32_t CWelsCodecTrace::LoadWelsTraceModule() { · 75 unmodified lines | |||
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | int32_t CWelsCodecTrace::UnloadWelsTraceModule() { | 295 | int32_t CWelsCodecTrace::UnloadWelsTraceModule() { |
| 296 | #if defined WIN32 | 296 | #if defined _WIN32 |
| 297 | if (m_hTraceHandle) { | 297 | if (m_hTraceHandle) { |
| 298 | ::FreeLibrary ((HMODULE)m_hTraceHandle); | 298 | ::FreeLibrary ((HMODULE)m_hTraceHandle); |
| 299 | } | 299 | } |
| @@ -320,7 +320,7 @@ int32_t CWelsCodecTrace::WriteString (int32_t iLevel, const str_t* pStr) { · 20 unmodified lines | |||
| 320 | if (m_hTraceHandle) | 320 | if (m_hTraceHandle) |
| 321 | #endif | 321 | #endif |
| 322 | { | 322 | { |
| 323 | #ifdef WIN32 | 323 | #ifdef _WIN32 |
| 324 | switch (iLevel) { | 324 | switch (iLevel) { |
| 325 | case WELS_LOG_ERROR: | 325 | case WELS_LOG_ERROR: |
| 326 | if (m_fpErrorTrace) | 326 | if (m_fpErrorTrace) |
| @@ -382,7 +382,7 @@ IWelsTrace* CreateWelsTrace (EWelsTraceType eType, void_t* pParam) { · 55 unmodified lines | |||
| 382 | case Wels_Trace_Type_File: | 382 | case Wels_Trace_Type_File: |
| 383 | pTrace = new CWelsTraceFile(); | 383 | pTrace = new CWelsTraceFile(); |
| 384 | break; | 384 | break; |
| 385 | #ifdef WIN32 | 385 | #ifdef _WIN32 |
| 386 | case Wels_Trace_Type_WinDgb: | 386 | case Wels_Trace_Type_WinDgb: |
| 387 | pTrace = new CWelsTraceWinDgb(); | 387 | pTrace = new CWelsTraceWinDgb(); |
| 388 | break; | 388 | break; |