summaryrefslogtreecommitdiff
path: root/CDAL/Debug.h
diff options
context:
space:
mode:
authorSrimanta Panda <srimanta.panda@stericsson.com>2011-10-13 10:17:16 +0200
committerSrimanta Panda <srimanta.panda@stericsson.com>2011-10-13 10:27:32 +0200
commit7b1ae2029ad33a38e1e718a33e2879325b389332 (patch)
treea86e4cb793dff0147649c5731b46981ac701fed5 /CDAL/Debug.h
parentfac26f795cf96ec624a3a334ba9b78ea2d86811d (diff)
Added Windows Support
RIFF will be supported for the Windows platform. It requires libusb-win32 library to build it.
Diffstat (limited to 'CDAL/Debug.h')
-rw-r--r--CDAL/Debug.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/CDAL/Debug.h b/CDAL/Debug.h
index 69e5112..cb3a503 100644
--- a/CDAL/Debug.h
+++ b/CDAL/Debug.h
@@ -13,9 +13,9 @@
#pragma once
//#define _DEBUG
+#define DEBUG_ERROR
#ifdef _DEBUG
#define DEBUG_INFO
-#define DEBUG_ERROR
#define DEBUG_HEXDUMP
#define DEBUG_HEXDUMP_SIZE 1024
#endif
@@ -35,7 +35,11 @@
class Debug
{
public:
+#ifdef _WIN32
+ inline static void error(const char* format, ...) {
+#else
inline static void error(const char* format, ...) __attribute__((format(printf, 1, 0))) {
+#endif
#ifdef DEBUG_ERROR
flockfile(stdout);
printf("ERROR - ");
@@ -49,7 +53,11 @@ public:
#endif
}
+#ifdef _WIN32
+ static inline void info(const char* format, ...) {
+#else
static inline void info(const char* format, ...) __attribute__((format(printf, 1, 0))) {
+#endif
#ifdef DEBUG_INFO
flockfile(stdout);
printf("INFO - ");