subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bre...@apache.org
Subject svn commit: r1543234 - /subversion/trunk/subversion/include/svn_types.h
Date Mon, 18 Nov 2013 23:42:40 GMT
Author: breser
Date: Mon Nov 18 23:42:40 2013
New Revision: 1543234

URL: http://svn.apache.org/r1543234
Log:
Code simplification: Use single macro to detect SWIG.

* subversion/include/svn_types.h
  (SVN_DEPRECATED, SVN_EXPERIMENTAL): Only test SWIG instead of the
    macro for each language.

Modified:
    subversion/trunk/subversion/include/svn_types.h

Modified: subversion/trunk/subversion/include/svn_types.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/include/svn_types.h?rev=1543234&r1=1543233&r2=1543234&view=diff
==============================================================================
--- subversion/trunk/subversion/include/svn_types.h (original)
+++ subversion/trunk/subversion/include/svn_types.h Mon Nov 18 23:42:40 2013
@@ -50,7 +50,7 @@ extern "C" {
  * @since New in 1.6.
  */
 #ifndef SVN_DEPRECATED
-# if !defined(SWIGPERL) && !defined(SWIGPYTHON) && !defined(SWIGRUBY)
+# if !defined(SWIG)
 #  if defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__==3 && __GNUC_MINOR__>=1))
 #   define SVN_DEPRECATED __attribute__((deprecated))
 #  elif defined(_MSC_VER) && _MSC_VER >= 1300
@@ -69,7 +69,7 @@ extern "C" {
  * @since New in 1.9.
  */
 #ifndef SVN_EXPERIMENTAL
-# if !defined(SWIGPERL) && !defined(SWIGPYTHON) && !defined(SWIGRUBY)
+# if !defined(SWIG)
 #  if defined(__has_attribute)
 #    if __has_attribute(__warning__)
 #      define SVN_EXPERIMENTAL __attribute__((warning("experimental function used")))



Mime
View raw message