apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gisle Vanem" <g...@bgnett.no>
Subject MingW patches
Date Mon, 30 Aug 2004 23:24:19 GMT
As promised here are the patches needed to build libapr.dll
with MingW + gcc 3.x.

* The inline problem is avoided  by this (contrary to my previous
#if defined(__GNUC__)
#define APR_INLINE extern __inline
#define APR_INLINE __inline

* Replaced "__inline" with "APR_INLINE" in some headers. 
  Assuming that's an omission and not a conscious choice (?)
  And some hacks for redefining inline; see apr_pools.c. Add

* 'apr_wchar_t' was type-def'ed in 2 places. Added a guard.

* <ShellAPI.h> and <AclAPI.h> are needed for MingW. MSVC
  seems to include these by default (outside WIN32_LEAN_AND_MEAN)

* Only (?) MSVC has <crtdbg.h>. <rpc.h> needed for definition of UUID.

* __attribute__ cannot be ifndef'ed away. All hell breaks loose if you do.

Gisle V.

# rm /bin/laden 
/bin/laden: Not found 
View raw message