From e9123cd60fe2b62d1d3e825e4039b0234c51a58f Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Sat, 14 Jan 2012 09:40:49 +0000 Subject: PR#5327, PR#5329: improvements in Unix.select emulation git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12023 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- otherlibs/win32unix/windbug.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'otherlibs/win32unix/windbug.h') diff --git a/otherlibs/win32unix/windbug.h b/otherlibs/win32unix/windbug.h index 3e2341361..efaeffc01 100644 --- a/otherlibs/win32unix/windbug.h +++ b/otherlibs/win32unix/windbug.h @@ -18,13 +18,15 @@ #include #include +/* According to MSDN, MSVC supports the gcc ## operator (to deal with empty argument lists) + */ #define DEBUG_PRINT(fmt, ...) \ do \ { \ if (debug_test()) \ { \ - fprintf(stderr, "DBUG (pid:%d, tid: %d): ", GetCurrentProcessId(), GetCurrentThreadId()); \ - fprintf(stderr, fmt, __VA_ARGS__); \ + fprintf(stderr, "DBUG (pid:%ld, tid: %ld): ", GetCurrentProcessId(), GetCurrentThreadId()); \ + fprintf(stderr, fmt, ##__VA_ARGS__); \ fprintf(stderr, "\n"); \ fflush(stderr); \ }; \ -- cgit v1.2.3-70-g09d2