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 | 34 | #include <windows.h> |
| 35 | 35 | #include <tchar.h> |
| 36 | 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 | 185 | int32_t CWelsTraceWinDgb::WriteString (int32_t iLevel, const str_t* pStr) { |
| 186 | 186 | OutputDebugStringA (pStr); |
| @@ -211,7 +211,7 @@ int32_t CWelsCodecTrace::LoadWelsTraceModule() { · 24 unmodified lines | ||
| 211 | 211 | m_fpWarnTrace = welsStderrTrace<WELS_LOG_WARNING>; |
| 212 | 212 | m_fpErrorTrace = welsStderrTrace<WELS_LOG_ERROR>; |
| 213 | 213 | #else |
| 214 | −#if defined WIN32 | |
| 214 | +#if defined _WIN32 | |
| 215 | 215 | HMODULE hHandle = ::LoadLibrary ("welstrace.dll"); |
| 216 | 216 | // HMODULE handle = ::LoadLibrary("contrace.dll"); // for c7 trace |
| 217 | 217 | if (NULL == hHandle) |
| @@ -293,7 +293,7 @@ int32_t CWelsCodecTrace::LoadWelsTraceModule() { · 75 unmodified lines | ||
| 293 | 293 | } |
| 294 | 294 | |
| 295 | 295 | int32_t CWelsCodecTrace::UnloadWelsTraceModule() { |
| 296 | −#if defined WIN32 | |
| 296 | +#if defined _WIN32 | |
| 297 | 297 | if (m_hTraceHandle) { |
| 298 | 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 | 320 | if (m_hTraceHandle) |
| 321 | 321 | #endif |
| 322 | 322 | { |
| 323 | −#ifdef WIN32 | |
| 323 | +#ifdef _WIN32 | |
| 324 | 324 | switch (iLevel) { |
| 325 | 325 | case WELS_LOG_ERROR: |
| 326 | 326 | if (m_fpErrorTrace) |
| @@ -382,7 +382,7 @@ IWelsTrace* CreateWelsTrace (EWelsTraceType eType, void_t* pParam) { · 55 unmodified lines | ||
| 382 | 382 | case Wels_Trace_Type_File: |
| 383 | 383 | pTrace = new CWelsTraceFile(); |
| 384 | 384 | break; |
| 385 | −#ifdef WIN32 | |
| 385 | +#ifdef _WIN32 | |
| 386 | 386 | case Wels_Trace_Type_WinDgb: |
| 387 | 387 | pTrace = new CWelsTraceWinDgb(); |
| 388 | 388 | break; |