546
|
1 |
--- binutils-2.18-orig/bfd/bfd-in.h 2007-08-06 19:59:14.000000000 +0000
|
|
2 |
+++ binutils-2.18/bfd/bfd-in.h 2007-10-14 09:49:53.043842758 +0000
|
|
3 |
@@ -48,7 +48,7 @@
|
|
4 |
comma and then the length of the string. Doing this by hand
|
|
5 |
is error prone, so using this macro is safer. The macro will
|
|
6 |
also safely handle the case where a NULL is passed as the arg. */
|
|
7 |
-#define STRING_COMMA_LEN(STR) (STR), ((STR) ? sizeof (STR) - 1 : 0)
|
|
8 |
+#define STRING_COMMA_LEN(STR) (STR), ((sizeof(STR) > 0) ? sizeof (STR) - 1 : 0)
|
|
9 |
/* Unfortunately it is not possible to use the STRING_COMMA_LEN macro
|
|
10 |
to create the arguments to another macro, since the preprocessor
|
|
11 |
will mis-count the number of arguments to the outer macro (by not
|
|
12 |
--- binutils-2.18-orig/bfd/bfd-in2.h 2007-08-06 19:59:15.000000000 +0000
|
|
13 |
+++ binutils-2.18/bfd/bfd-in2.h 2007-10-14 09:49:26.509636374 +0000
|
|
14 |
@@ -55,7 +55,7 @@
|
|
15 |
comma and then the length of the string. Doing this by hand
|
|
16 |
is error prone, so using this macro is safer. The macro will
|
|
17 |
also safely handle the case where a NULL is passed as the arg. */
|
|
18 |
-#define STRING_COMMA_LEN(STR) (STR), ((STR) ? sizeof (STR) - 1 : 0)
|
|
19 |
+#define STRING_COMMA_LEN(STR) (STR), ((sizeof(STR) > 0) ? sizeof (STR) - 1 : 0)
|
|
20 |
/* Unfortunately it is not possible to use the STRING_COMMA_LEN macro
|
|
21 |
to create the arguments to another macro, since the preprocessor
|
|
22 |
will mis-count the number of arguments to the outer macro (by not
|