wrowe 02/02/11 17:52:35
Modified: strings apr_strnatcmp.c
Log:
WinCE port from Mladen Turk <[EMAIL PROTECTED]>
I think this question deserves an answer - is this assert legit????????
Revision Changes Path
1.8 +6 -3 apr/strings/apr_strnatcmp.c
Index: apr_strnatcmp.c
===================================================================
RCS file: /home/cvs/apr/strings/apr_strnatcmp.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- apr_strnatcmp.c 13 Dec 2001 17:26:15 -0000 1.7
+++ apr_strnatcmp.c 12 Feb 2002 01:52:35 -0000 1.8
@@ -22,10 +22,12 @@
#include <ctype.h>
#include <string.h>
-#include <assert.h>
-
#include "apr_strings.h"
#include "apr_lib.h" /* for apr_is*() */
+#if APR_HAVE_ERRNO_H
+/* Do we realy need the assert here ? */
+#include <assert.h>
+#endif
#if defined(__GNUC__)
# define UNUSED __attribute__((__unused__))
@@ -92,8 +94,9 @@
int ai, bi;
char ca, cb;
int fractional, result;
-
+#if APR_HAVE_ERRNO_H
assert(a && b);
+#endif
ai = bi = 0;
while (1) {
ca = a[ai]; cb = b[bi];