summaryrefslogtreecommitdiff
path: root/trafgen_parser.y
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-12-15 23:09:12 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-12-17 10:02:35 +0100
commit31cab05faab92a2f0062b4833547083621d85678 (patch)
treed68c51ecf69f457654ad49ee805833407125d166 /trafgen_parser.y
parent52726714c29c3442d3675da4fe888d565988d5db (diff)
cpp: Allow to pass additional cpp options
Extend cpp_exec function with args parameter to specify additional cpp options (like -D). Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r--trafgen_parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y
index 44751ab..8a0f3b7 100644
--- a/trafgen_parser.y
+++ b/trafgen_parser.y
@@ -599,7 +599,7 @@ void compile_packets(char *file, bool verbose, unsigned int cpu, bool invoke_cpp
our_cpu = cpu;
if (invoke_cpp) {
- if (cpp_exec(file, tmp_file, sizeof(tmp_file))) {
+ if (cpp_exec(file, tmp_file, sizeof(tmp_file), NULL)) {
fprintf(stderr, "Failed to invoke C preprocessor!\n");
goto err;
}