fix spelling of HAVE_LIBPYTHON2_4 in py-value.c
authorTom Tromey <tom@tromey.com>
Wed, 25 May 2016 13:54:44 +0000 (07:54 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 25 May 2016 13:54:44 +0000 (07:54 -0600)
Ulrich pointed out that an earlier patch had misspelled
HAVE_LIBPYTHON2_4, adding an extra "_".  This caused a build failure.
This patch fixes the bug.

2016-05-25  Tom Tromey  <tom@tromey.com>

* python/py-value.c (value_object_as_number): Use correct spelling
of HAVE_LIBPYTHON2_4.

gdb/ChangeLog
gdb/python/py-value.c

index d99ea83db9d324a4f45199ac0a61b279e26aa0ea..6609f9c7e7b944e8a4f9fae6157c3a85950bd2b8 100644 (file)
@@ -1,3 +1,8 @@
+2016-05-25  Tom Tromey  <tom@tromey.com>
+
+       * python/py-value.c (value_object_as_number): Use correct spelling
+       of HAVE_LIBPYTHON2_4.
+
 2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
 
        * f-typeprint.c (f_type_print_base): Replace 0 by show.
 2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
 
        * f-typeprint.c (f_type_print_base): Replace 0 by show.
index 7a2a235d7e71d371be6157e5234ec4c628f6fa16..21e9247857a6eac4c3b94267a0688a8f52f6e7e7 100644 (file)
@@ -1841,10 +1841,10 @@ static PyNumberMethods value_object_as_number = {
   valpy_divide,               /* nb_true_divide */
   NULL,                              /* nb_inplace_floor_divide */
   NULL,                              /* nb_inplace_true_divide */
   valpy_divide,               /* nb_true_divide */
   NULL,                              /* nb_inplace_floor_divide */
   NULL,                              /* nb_inplace_true_divide */
-#ifndef HAVE_LIBPYTHON_2_4
+#ifndef HAVE_LIBPYTHON2_4
   /* This was added in Python 2.5.  */
   valpy_long,                /* nb_index */
   /* This was added in Python 2.5.  */
   valpy_long,                /* nb_index */
-#endif /* HAVE_LIBPYTHON_2_4 */
+#endif /* HAVE_LIBPYTHON2_4 */
 };
 
 static PyMappingMethods value_object_as_mapping = {
 };
 
 static PyMappingMethods value_object_as_mapping = {
This page took 0.028151 seconds and 4 git commands to generate.