From a44a6ee3459bc5a1c95484a93267591cfd544c48 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Wed, 7 Mar 2012 21:37:38 -0600 Subject: [PATCH] Bugfix: fix definition of array_length_printf macros Use ifndef and not ifdef for _di_f_array_length_printf_ because using #ifdef _di_f_array_length_printf_ is completely wrong. Use #define and not typedef as these are not data types, but instead are strings. --- level_0/f_strings/c/strings.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/level_0/f_strings/c/strings.h b/level_0/f_strings/c/strings.h index 74abe54..a7cdbcc 100644 --- a/level_0/f_strings/c/strings.h +++ b/level_0/f_strings/c/strings.h @@ -61,10 +61,10 @@ extern "C"{ #define string_format_long_long_unsigned "%llu" #endif // _di_string_format_pointers_ -#ifdef _di_f_array_length_printf_ - typedef f_array_length_printf string_format_unsigned; - typedef f_array_length_short_printf string_format_long_unsigned; - typedef f_array_length_long_printf string_format_long_long_unsigned; +#ifndef _di_f_array_length_printf_ + #define f_array_length_printf string_format_unsigned + #define f_array_length_short_printf string_format_long_unsigned + #define f_array_length_long_printf string_format_long_long_unsigned #endif // _di_f_array_length_printf_ // define the basic string type -- 1.8.3.1