summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-05-31 21:39:20 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-05-31 21:39:20 +0000
commit6cdb788de183eecc32850bff7546ab08d410657a (patch)
treecfbf01adc081bcd7ffd04479b1a97d4ace993b97
parent7b98d14e264f526ce36dbcdd4038760942b99d73 (diff)
downloadlibapr-6cdb788de183eecc32850bff7546ab08d410657a.tar.gz
Stop undefining __attribute__ for GNUC (only 2.7 and prior might be interesting
and can't think of any case where native win32 binaries would be created with such an ancient compiler.) Backport: 543219 PR: 42545 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@543270 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--include/apr.hw2
-rw-r--r--include/arch/win32/apr_private.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/include/apr.hw b/include/apr.hw
index 5cbb17e13..127b49bce 100644
--- a/include/apr.hw
+++ b/include/apr.hw
@@ -111,7 +111,7 @@
#define APR_INLINE __inline
#define APR_HAS_INLINE 1
-#ifndef __attribute__
+#if !defined(__GNUC__) && !defined(__attribute__)
#define __attribute__(__x)
#endif
diff --git a/include/arch/win32/apr_private.h b/include/arch/win32/apr_private.h
index aaeccf8d7..40a7f7503 100644
--- a/include/arch/win32/apr_private.h
+++ b/include/arch/win32/apr_private.h
@@ -114,8 +114,6 @@
#define SIGWINCH 30
#define SIGIO 31
-#define __attribute__(__x)
-
/* APR COMPATABILITY FUNCTIONS
* This section should be used to define functions and
* macros which are need to make Windows features look