Thursday, July 26, 2007

APR 1.2.9 on Vista

It fails to compile on Vista again due to inappropriate orders of Windows headers.

Open misc/win32/rand.c, and change

#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"

to

#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>

1 comment:

Anonymous said...

Was stuck trying to compile Apache in Visual Studio 6 until I found this. Thanks!