[committed] libstdc++: Fix name of macro in #undef directive

Message ID 20200204140534.GA716578@redhat.com
State New
Headers show
Series
  • [committed] libstdc++: Fix name of macro in #undef directive
Related show

Commit Message

Jonathan Wakely Feb. 4, 2020, 2:05 p.m.
The macro that is defined is _GLIBCXX_NOT_FN_CALL_OP but the macro that
was named in the #undef directive was _GLIBCXX_NOT_FN_CALL. This fixes
the #undef.

	* include/std/functional (_GLIBCXX_NOT_FN_CALL_OP): Un-define after
	use.

Tested powerpc64le-linux. Committed to master.
commit 9bc5bea1f3f0ce3927fd86ce728641d087f3d3b5
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Feb 4 13:30:57 2020 +0000

    libstdc++: Fix name of macro in #undef directive
    
    The macro that is defined is _GLIBCXX_NOT_FN_CALL_OP but the macro that
    was named in the #undef directive was _GLIBCXX_NOT_FN_CALL. This fixes
    the #undef.
    
            * include/std/functional (_GLIBCXX_NOT_FN_CALL_OP): Un-define after
            use.

Patch

diff --git a/libstdc++-v3/include/std/functional b/libstdc++-v3/include/std/functional
index 88cffd5a9ce..faa7e85c114 100644
--- a/libstdc++-v3/include/std/functional
+++ b/libstdc++-v3/include/std/functional
@@ -953,7 +953,7 @@  _GLIBCXX_BEGIN_NAMESPACE_VERSION
       _GLIBCXX_NOT_FN_CALL_OP( const & )
       _GLIBCXX_NOT_FN_CALL_OP( && )
       _GLIBCXX_NOT_FN_CALL_OP( const && )
-#undef _GLIBCXX_NOT_FN_CALL
+#undef _GLIBCXX_NOT_FN_CALL_OP
 
     private:
       _Fn _M_fn;