]> Kevux Git Server - fll/commitdiff
Bugfix: fix definition of array_length_printf macros
authorKevin Day <kevin@kevux.org>
Thu, 8 Mar 2012 03:37:38 +0000 (21:37 -0600)
committerKevin Day <kevin@kevux.org>
Thu, 8 Mar 2012 03:39:52 +0000 (21:39 -0600)
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

index 74abe5400efb8a2e0d8f1aec9755c184af48a172..a7cdbcc9d9834f275c0663d3893a627c31b3a1a1 100644 (file)
@@ -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