Wrap header with ifdef for C++ compatibility

This commit is contained in:
jo 2023-06-30 15:48:35 +01:00 committed by Luke Wren
parent fa16ae779f
commit a248d72b8c

View file

@ -1,6 +1,10 @@
#ifndef _DVI_H
#define _DVI_H
#ifdef __cplusplus
extern "C" {
#endif
#define N_TMDS_LANES 3
#define TMDS_SYNC_LANE 0 // blue!
@ -69,4 +73,8 @@ void dvi_scanbuf_main_16bpp(struct dvi_inst *inst);
void dvi_framebuf_main_8bpp(struct dvi_inst *inst);
void dvi_framebuf_main_16bpp(struct dvi_inst *inst);
#ifdef __cplusplus
}
#endif
#endif