This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Close extern "C" scope in partition.h


The following patch fixes a minor problem in libiberty's partition.h
that I came across whilst checking my previous patch.  All libiberty's
headers contain paired "#ifdef __cplusplus" that are use to begin and
end an extern "C" scope.  A quick grep revealed that the only exception
was partition.h, where it looks like the scope closing #ifdef has
accidentally been omitted.  Fixed below.

This patch has been tested by bootstraping i686-pc-linux-gnu.

Ok for mainline?


2002-10-26  Roger Sayle  <roger@eyesopen.com>

	* partition.h:  Close the extern "C" scope when compiling with C++.


Index: partition.h
===================================================================
RCS file: /cvs/gcc/gcc/include/partition.h,v
retrieving revision 1.4
diff -c -3 -p -r1.4 partition.h
*** partition.h	25 Jun 2002 00:14:15 -0000	1.4
--- partition.h	26 Oct 2002 20:57:07 -0000
*************** extern void partition_print
*** 78,81 ****
--- 78,85 ----
  #define partition_find(partition__, element__) \
      ((partition__)->elements[(element__)].class_element)

+ #ifdef __cplusplus
+ }
+ #endif /* __cplusplus */
+
  #endif /* _PARTITION_H */


Roger
--
Roger Sayle,                         E-mail: roger@eyesopen.com
OpenEye Scientific Software,         WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road,     Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507.         Fax: (+1) 505-473-0833


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]