From: Kevin Day Date: Thu, 8 Mar 2012 03:37:38 +0000 (-0600) Subject: Bugfix: fix definition of array_length_printf macros X-Git-Tag: 0.3.0~108 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=a44a6ee3459bc5a1c95484a93267591cfd544c48;p=fll 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. --- 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