Menu

#561 camerav4l2: missing extern "C" in bayer.h

Release-3.0
closed-accepted
Player (393)
5
2010-05-03
2010-02-28
No

Since this C code is mixed with C++ class, extern "C" should be added in bayer.h like this:

#ifdef __cplusplus
extern "C" {
#endif

extern void bayer2rgb24(unsigned char *dst, unsigned char *src, long int WIDTH, long int HEIGHT);

#ifdef __cplusplus
}
#endif

After applying this, still compiles fine.

Discussion

  • Paul Osmialowski

    server/drivers/camera/v4l2/bayer.h

     
  • Toby Collett

    Toby Collett - 2010-05-03
    • status: open --> closed-accepted
     
  • Toby Collett

    Toby Collett - 2010-05-03

    The changes have been made in SVN trunk.
    Thank you for your contribution.

     

Log in to post a comment.