public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* dis-asm-c++.patch
@ 1999-12-15 16:14 Doug Evans
  0 siblings, 0 replies; 2+ messages in thread
From: Doug Evans @ 1999-12-15 16:14 UTC (permalink / raw)
  To: binutils

A simple patch so dis-asm.h can be used with c++.

1999-12-15  Doug Evans  <dje@casey.transmeta.com>

	* dis-asm.h: Enclose in extern "C" ifdef __cplusplus.

Index: dis-asm.h
===================================================================
RCS file: /cvs/binutils/binutils/include/dis-asm.h,v
retrieving revision 1.3
diff -c -p -r1.3 dis-asm.h
*** dis-asm.h	1999/09/04 17:17:37	1.3
--- dis-asm.h	1999/12/15 23:58:48
***************
*** 9,14 ****
--- 9,18 ----
  #ifndef DIS_ASM_H
  #define DIS_ASM_H
  
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+ 
  #include <stdio.h>
  #include "bfd.h"
  
*************** extern int generic_symbol_at_address
*** 245,249 ****
--- 249,257 ----
    (INFO).bytes_per_chunk = 0, \
    (INFO).display_endian = BFD_ENDIAN_UNKNOWN, \
    (INFO).insn_info_valid = 0
+ 
+ #ifdef __cplusplus
+ };
+ #endif
  
  #endif /* ! defined (DIS_ASM_H) */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: dis-asm-c++.patch
@ 1999-12-15 17:52 Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 1999-12-15 17:52 UTC (permalink / raw)
  To: dje; +Cc: binutils

Hi Doug,

: A simple patch so dis-asm.h can be used with c++.
: 
: 1999-12-15  Doug Evans  <dje@casey.transmeta.com>
: 
: 	* dis-asm.h: Enclose in extern "C" ifdef __cplusplus.

This is fine - please check it in.

Cheers
	Nick

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-12-15 17:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-15 16:14 dis-asm-c++.patch Doug Evans
1999-12-15 17:52 dis-asm-c++.patch Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).