From da6ad20dba07ecb49b33323e9e3bf667786645b3 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 23 Jan 2016 14:10:26 +0100 Subject: Improved icetime PREFIX handling --- icetime/icetime.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'icetime/icetime.cc') diff --git a/icetime/icetime.cc b/icetime/icetime.cc index e9bfc55..086da8f 100644 --- a/icetime/icetime.cc +++ b/icetime/icetime.cc @@ -31,9 +31,6 @@ // add this number of ns as estimate for clock distribution mismatch #define GLOBAL_CLK_DIST_JITTER 0.1 -#define STRINGIFY(x) #x -#define TOSTRING(x) STRINGIFY(x) - FILE *fin = nullptr, *fout = nullptr, *frpt = nullptr; bool verbose = false; bool max_span_hack = false; @@ -268,7 +265,7 @@ void read_config() void read_chipdb() { char buffer[1024]; - snprintf(buffer, 1024, TOSTRING(PREFIX) "/share/icebox/chipdb-%s.txt", config_device.c_str()); + snprintf(buffer, 1024, PREFIX "/share/icebox/chipdb-%s.txt", config_device.c_str()); FILE *fdb = fopen(buffer, "r"); if (fdb == nullptr) { -- cgit v1.2.3