Hi,
 
In apr/misc/win32/rand.c,
it failed to compile here with the error: undeclared identifier 'HCRYPTPROV',
for lack of the definition of _WIN32_WINNT in wincrypt.h.
Reordering the headers (wincrypt.h after apr.h) would be OK.
 
-Xi
 
Index: rand.c
===================================================================
--- rand.c (revision 447310)
+++ rand.c (working copy)
@@ -14,15 +14,14 @@
  * limitations under the License.
  */
 
-#include <windows.h>
-#include <wincrypt.h>
 #include "apr.h"
 #include "apr_private.h"
 #include "apr_general.h"
 #include "apr_portable.h"
 #include "apr_arch_misc.h"
+#include <windows.h>
+#include <wincrypt.h>
 
-
 APR_DECLARE(apr_status_t) apr_generate_random_bytes(unsigned char * buf,
                                                     apr_size_t length)
 {