for (size_t i = 0;; i++)
{
int d = tolower (s1[i]) - tolower (s2[i]);
- if (d) return d;
+ if (d || !s1[i]) return d;
}
return 0;
}
for (size_t i = 0; i < n; i++)
{
int d = tolower (s1[i]) - tolower (s2[i]);
- if (d) return d;
+ if (d || !s1[i]) return d;
}
return 0;
}
}
#endif
+/* Alignment of critical static data structures */
+#ifdef ATTRIBUTE_ALIGNED_MAX
+# define ATTR_ALIGN(align) __attribute__ ((__aligned__ ((ATTRIBUTE_ALIGNED_MAX < align) ? ATTRIBUTE_ALIGNED_MAX : align)))
+#else
+# define ATTR_ALIGN(align)
+#endif
+
#ifndef HAVE_USELOCALE
typedef void *locale_t;
# define newlocale( a, b, c ) ((locale_t)0)
#if defined (ENABLE_NLS)
# include <libintl.h>
-#else
-# define dgettext(dom, str) ((char *)(str))
#endif
#define N_(str) gettext_noop (str)