From fbe83efc8183980109846bd884da28104ca1faa1 Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 周五, 16 10月 2015 06:48:56 +0800
Subject: [PATCH] Add USE_COMMAND_TAGS and USE_DEPRECATED_FUNCTIONS defines

---
 libscpi/src/parser.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libscpi/src/parser.c b/libscpi/src/parser.c
index b040c5e..62dc151 100644
--- a/libscpi/src/parser.c
+++ b/libscpi/src/parser.c
@@ -1350,6 +1350,7 @@
     return matchCommand(pattern, cmd, strlen(cmd), NULL, 0, 0);
 }
 
+#if USE_COMMAND_TAGS
 /**
  * Return the .tag field of the matching scpi_command_t
  * @param context
@@ -1362,6 +1363,7 @@
         return 0;
     }
 }
+#endif /* USE_COMMAND_TAGS */
 
 scpi_bool_t SCPI_Match(const char * pattern, const char * value, size_t len) {
     return matchCommand(pattern, value, len, NULL, 0, 0);

--
Gitblit v1.9.1