libstdc++: Fix name of macro in #undef directive
authorJonathan Wakely <jwakely@redhat.com>
Tue, 4 Feb 2020 13:30:57 +0000 (13:30 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 4 Feb 2020 13:30:57 +0000 (13:30 +0000)
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.

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/functional

index bb1c3ab17458731d052940513a08db1ee10888ea..d925a0b3de84fddcc6a82fd1d9b066b1b2497b1d 100644 (file)
@@ -1,5 +1,8 @@
 2020-02-04  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/std/functional (_GLIBCXX_NOT_FN_CALL_OP): Un-define after
+       use.
+
        PR libstdc++/93562
        * include/bits/unique_ptr.h (__uniq_ptr_impl::swap): Define.
        (unique_ptr::swap, unique_ptr<T[], D>::swap): Call it.
index 88cffd5a9ce958d133686c245ab5df9775734074..faa7e85c114aeb0adf6cda49b79f9437526480c5 100644 (file)
@@ -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;