summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2002-01-11 19:23:04 +0000
committerDan Fandrich <dan@coneharvesters.com>2002-01-11 19:23:04 +0000
commit4511fdccd544244ab8718776ad43345eb11df7dc (patch)
tree543018a633ced702df42752fb5f618bd96db50c9 /frontends
parent66a1fbb791b60fed6e252a1eb7f73130b9f3408a (diff)
downloadlibgphoto2-4511fdccd544244ab8718776ad43345eb11df7dc.tar.gz
Added support for C99 compilers and those without variadic macros
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3821 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'frontends')
-rw-r--r--frontends/command-line/main.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/frontends/command-line/main.h b/frontends/command-line/main.h
index f4a96a432..e97c17bfc 100644
--- a/frontends/command-line/main.h
+++ b/frontends/command-line/main.h
@@ -29,7 +29,15 @@ typedef struct {
#ifndef DISABLE_DEBUGGING
void cli_debug_print(char *format, ...);
#else
+
+#ifdef __GNUC__
#define cli_debug_print(format, args...) /**/
+#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#define cli_debug_print(...) /**/
+#else
+#define cli_debug_print (void)
+#endif
+
#endif
void cli_error_print(char *format, ...);