Changeset 874:fdb9418acb60 in roaraudio


Ignore:
Timestamp:
10/03/08 16:40:39 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use *_DECLS

Location:
include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroardsp/libroardsp.h

    r816 r874  
    2727 
    2828#include <roaraudio.h> 
     29 
     30__BEGIN_DECLS 
    2931 
    3032#include "midi.h" 
     
    105107int roardsp_conv_pcm162alaw (char * out, int16_t * in, size_t len); 
    106108 
     109__END_DECLS 
     110 
    107111#endif 
    108112 
  • include/roaraudio.h

    r780 r874  
    6666#define roar_uintm16 uint16_t 
    6767#endif 
     68 
     69#ifndef __BEGIN_DECLS 
     70#ifdef __cplusplus 
     71# define __BEGIN_DECLS extern "C" { 
     72# define __END_DECLS } 
     73#else 
     74# define __BEGIN_DECLS 
     75# define __END_DECLS 
     76#endif 
     77#endif 
     78 
     79__BEGIN_DECLS 
    6880 
    6981#include <roaraudio/proto.h> 
     
    180192#endif 
    181193 
     194__END_DECLS 
     195 
    182196#endif 
    183197 
Note: See TracChangeset for help on using the changeset viewer.