make it easier to link with C++ projects default tip
authorPhilipp Wagner <mail@philipp-wagner.com>
Sun Jun 14 18:40:08 2009 +0200 (2009-06-14)
changeset 149e691731b34
parent 0 6de75f1eb56c
make it easier to link with C++ projects
libspeechmike.h
     1.1 --- a/libspeechmike.h	Sun Jun 14 17:34:16 2009 +0200
     1.2 +++ b/libspeechmike.h	Sun Jun 14 18:40:08 2009 +0200
     1.3 @@ -18,6 +18,10 @@
     1.4  #ifndef LIBSPEECHMIKE_H_
     1.5  #define LIBSPEECHMIKE_H_
     1.6  
     1.7 +#ifdef __cplusplus
     1.8 +extern "C" {
     1.9 +#endif 
    1.10 +
    1.11  #include <stdint.h>
    1.12  
    1.13  /* even though these keys look different on different speechmike versions,
    1.14 @@ -89,4 +93,8 @@
    1.15   */
    1.16  int speechmike_read(struct speechmike_context* ctxt, struct speechmike_key_event* ev);
    1.17  
    1.18 +#ifdef __cplusplus
    1.19 +}
    1.20 +#endif
    1.21 +
    1.22  #endif /* LIBSPEECHMIKE_H_ */