fixed compile warnings on Windows

This commit is contained in:
Vadim Pisarevsky 2014-06-25 16:17:52 +04:00
parent 66f2e527b6
commit 8f2aaff6d7

View File

@ -79,10 +79,10 @@
#include <stdio.h> #include <stdio.h>
#define LOGD0(_str, ...) do{printf(_str , ## __VA_ARGS__); printf("\n");fflush(stdout);} while(0) #define LOGD0(_str, ...) (printf(_str , ## __VA_ARGS__), printf("\n"), fflush(stdout))
#define LOGI0(_str, ...) do{printf(_str , ## __VA_ARGS__); printf("\n");fflush(stdout);} while(0) #define LOGI0(_str, ...) (printf(_str , ## __VA_ARGS__), printf("\n"), fflush(stdout))
#define LOGW0(_str, ...) do{printf(_str , ## __VA_ARGS__); printf("\n");fflush(stdout);} while(0) #define LOGW0(_str, ...) (printf(_str , ## __VA_ARGS__), printf("\n"), fflush(stdout))
#define LOGE0(_str, ...) do{printf(_str , ## __VA_ARGS__); printf("\n");fflush(stdout);} while(0) #define LOGE0(_str, ...) (printf(_str , ## __VA_ARGS__), printf("\n"), fflush(stdout))
#endif #endif
#if DEBUGLOGS #if DEBUGLOGS
@ -91,10 +91,10 @@
#define LOGW(_str, ...) LOGW0(_str , ## __VA_ARGS__) #define LOGW(_str, ...) LOGW0(_str , ## __VA_ARGS__)
#define LOGE(_str, ...) LOGE0(_str , ## __VA_ARGS__) #define LOGE(_str, ...) LOGE0(_str , ## __VA_ARGS__)
#else #else
#define LOGD(...) do{} while(0) #define LOGD(...)
#define LOGI(...) do{} while(0) #define LOGI(...)
#define LOGW(...) do{} while(0) #define LOGW(...)
#define LOGE(...) do{} while(0) #define LOGE(...)
#endif #endif