You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Bill Stoddard <bi...@wstoddard.com> on 2002/02/19 20:15:45 UTC

[PATCH] Get APR compiling on Windows...

ULONG_PTR? Not defined anywhere on my system (greped all the Visual Studio directories).

Bill

Index: misc.h
===================================================================
RCS file: /home/cvs/apr/include/arch/win32/misc.h,v
retrieving revision 1.40
diff -u -r1.40 misc.h
--- misc.h 18 Feb 2002 05:50:06 -0000 1.40
+++ misc.h 19 Feb 2002 19:11:49 -0000
@@ -328,10 +328,10 @@
 typedef struct PBI {
     DWORD ExitStatus;
     PVOID PebBaseAddress;
-    ULONG_PTR AffinityMask;
+    PULONG AffinityMask;
     LONG  BasePriority;
-    ULONG_PTR UniqueProcessId;
-    ULONG_PTR InheritedFromUniqueProcessId;
+    PULONG UniqueProcessId;
+    PULONG InheritedFromUniqueProcessId;
 } PBI, *PPBI;
 


Re: [PATCH] Get APR compiling on Windows...

Posted by "William A. Rowe, Jr." <wr...@covalent.net>.
From: "Bill Stoddard" <bi...@wstoddard.com>
Sent: Tuesday, February 19, 2002 1:15 PM


> ULONG_PTR? Not defined anywhere on my system (greped all the Visual Studio directories).
>
> --- misc.h 18 Feb 2002 05:50:06 -0000 1.40
> +++ misc.h 19 Feb 2002 19:11:49 -0000
> -    ULONG_PTR AffinityMask;
> +    PULONG AffinityMask;

That's a shame ... this is going to become somewhat of a pain, since ULONG_PTR
is an attribute of 64bit porting.  We are going to need to struggle with this
elsewhere, some integer identifiers such as PIDs become 64 bits, although the
underlying 'int' datatype remains 32bits on Win64.

I'll come up with an equivilant and commit.  You would find it in newer SDKs,
but we are attempting to avoid those or substitute for them when we bump into 
this sort of problem.

Bill


Re: [PATCH] Get APR compiling on Windows...

Posted by Greg Marr <gr...@alum.wpi.edu>.
At 02:15 PM 02/19/2002, Bill Stoddard wrote:
>ULONG_PTR? Not defined anywhere on my system (greped all the Visual 
>Studio directories).

It's in the platform SDK.  It's part of the support for porting to 
64-bit Windows, which didn't start appearing until after VC6 was 
released.


-- 
Greg Marr
gregm@alum.wpi.edu
"We thought you were dead."
"I was, but I'm better now." - Sheridan, "The Summoning"