You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by da...@apache.org on 2007/06/29 18:59:30 UTC

svn commit: r551958 - /apr/apr/trunk/misc/win32/rand.c

Author: davi
Date: Fri Jun 29 09:59:29 2007
New Revision: 551958

URL: http://svn.apache.org/viewvc?view=rev&rev=551958
Log:
Something in apr_private.h when preprocessed with the MinGW Windows headers
effectively redefines WINADVAPI from __stdcall to empty which results in a
link failure when wincrypt.h is placed after an include to apr_private.h.

Submitted by: Curt Arnold


Modified:
    apr/apr/trunk/misc/win32/rand.c

Modified: apr/apr/trunk/misc/win32/rand.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/misc/win32/rand.c?view=diff&rev=551958&r1=551957&r2=551958
==============================================================================
--- apr/apr/trunk/misc/win32/rand.c (original)
+++ apr/apr/trunk/misc/win32/rand.c Fri Jun 29 09:59:29 2007
@@ -14,9 +14,8 @@
  * limitations under the License.
  */
 
-#include <windows.h>
-#include <wincrypt.h>
 #include "apr.h"
+#include <wincrypt.h>
 #include "apr_private.h"
 #include "apr_general.h"
 #include "apr_portable.h"