summaryrefslogtreecommitdiff
path: root/bin/bbackupquery/CommandCompletion.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2011-03-26 23:25:17 +0000
committerChris Wilson <chris+github@qwirx.com>2011-03-26 23:25:17 +0000
commit22a9b8f427d724088a9468c56c756f210e7522c7 (patch)
tree789c8a958e4297ebbc05f8e082b74e3f2ab33d9d /bin/bbackupquery/CommandCompletion.cpp
parent31fd2568dc50e69a8a1e7daedd577fa05410d74b (diff)
Eliminate nested macros to fix compile with MSVC 2010.
Diffstat (limited to 'bin/bbackupquery/CommandCompletion.cpp')
-rw-r--r--bin/bbackupquery/CommandCompletion.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/bbackupquery/CommandCompletion.cpp b/bin/bbackupquery/CommandCompletion.cpp
index b69c7427..f7dab973 100644
--- a/bin/bbackupquery/CommandCompletion.cpp
+++ b/bin/bbackupquery/CommandCompletion.cpp
@@ -81,14 +81,16 @@ COMPLETION_FUNCTION(None,)
#define HAVE_A_FILENAME_COMPLETION_FUNCTION 1
#endif
-COMPLETION_FUNCTION(Default,
#ifdef HAVE_A_FILENAME_COMPLETION_FUNCTION
+COMPLETION_FUNCTION(Default,
while (const char *match = RL_FILENAME_COMPLETION_FUNCTION(prefix.c_str(), 0))
{
completions.push_back(match);
}
-#endif // HAVE_A_FILENAME_COMPLETION_FUNCTION
)
+#else // !HAVE_A_FILENAME_COMPLETION_FUNCTION
+COMPLETION_FUNCTION(Default,)
+#endif // HAVE_A_FILENAME_COMPLETION_FUNCTION
COMPLETION_FUNCTION(Command,
int len = prefix.length();