httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r795438 - /httpd/httpd/trunk/server/gen_test_char.c
Date Sat, 18 Jul 2009 21:51:21 GMT
Author: fuankg
Date: Sat Jul 18 21:51:21 2009
New Revision: 795438

URL: http://svn.apache.org/viewvc?rev=795438&view=rev
Log:
enabled building gen_test_char for running on build when cross-compiling;
this does not change code for any platform unless CROSS_COMPILE is defined.

Modified:
    httpd/httpd/trunk/server/gen_test_char.c

Modified: httpd/httpd/trunk/server/gen_test_char.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/gen_test_char.c?rev=795438&r1=795437&r2=795438&view=diff
==============================================================================
--- httpd/httpd/trunk/server/gen_test_char.c (original)
+++ httpd/httpd/trunk/server/gen_test_char.c Sat Jul 18 21:51:21 2009
@@ -14,9 +14,31 @@
  * limitations under the License.
  */
 
+#ifdef CROSS_COMPILE
+
+/** @see isalnum */
+#define apr_isalnum(c) (isalnum(((unsigned char)(c))))
+/** @see isalpha */
+#define apr_isalpha(c) (isalpha(((unsigned char)(c))))
+/** @see iscntrl */
+#define apr_iscntrl(c) (iscntrl(((unsigned char)(c))))
+/** @see isprint */
+#define apr_isprint(c) (isprint(((unsigned char)(c))))
+#include <ctype.h>
+#define APR_HAVE_STDIO_H 1
+#define APR_HAVE_STRING_H 1
+
+#else
+
 #include "apr.h"
 #include "apr_lib.h"
 
+#ifdef WIN32
+#define WANT_WIN32
+#endif
+
+#endif
+
 #if APR_HAVE_STDIO_H
 #include <stdio.h>
 #endif
@@ -62,7 +84,7 @@
             printf("\n    ");
 
         /* escape_shell_cmd */
-#if defined(WIN32)
+#if defined(WANT_WIN32)
         /* Win32 has many of the same vulnerable characters
          * as Unix sh, plus the carriage return and percent char.
          * The proper escaping of these characters varies from unix



Mime
View raw message