apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r892180 - in /apr/apr/trunk/include: apr.h.in apr.hw
Date Fri, 18 Dec 2009 08:36:52 GMT
Author: wrowe
Date: Fri Dec 18 08:36:51 2009
New Revision: 892180

URL: http://svn.apache.org/viewvc?rev=892180&view=rev
Log:
MSVC needs __attribute__ fixed, and on second thought, drop it from .h.in

Modified:
    apr/apr/trunk/include/apr.h.in
    apr/apr/trunk/include/apr.hw

Modified: apr/apr/trunk/include/apr.h.in
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/apr.h.in?rev=892180&r1=892179&r2=892180&view=diff
==============================================================================
--- apr/apr/trunk/include/apr.h.in (original)
+++ apr/apr/trunk/include/apr.h.in Fri Dec 18 08:36:51 2009
@@ -56,10 +56,7 @@
  * means.  In particular it's missing inline and the __attribute__
  * stuff.  So we hack around it.  PR#1613. -djg
  */
-#if defined(_MSC_VER)
-#define APR_INLINE __inline
-#define APR_HAS_INLINE		1
-#elif !defined(__GNUC__) || __GNUC__ < 2 || \
+#if !defined(__GNUC__) || __GNUC__ < 2 || \
     (__GNUC__ == 2 && __GNUC_MINOR__ < 7) ||\
     defined(NEXT)
 #ifndef __attribute__

Modified: apr/apr/trunk/include/apr.hw
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/apr.hw?rev=892180&r1=892179&r2=892180&view=diff
==============================================================================
--- apr/apr/trunk/include/apr.hw (original)
+++ apr/apr/trunk/include/apr.hw Fri Dec 18 08:36:51 2009
@@ -93,6 +93,9 @@
 #if defined(_MSC_VER)
 #define APR_INLINE __inline
 #define APR_HAS_INLINE		1
+#ifndef __attribute__
+#define __attribute__(__x)
+#endif
 #elif !defined(__GNUC__) || __GNUC__ < 2 || \
     (__GNUC__ == 2 && __GNUC_MINOR__ < 7) ||\
     defined(NEXT)



Mime
View raw message