From 9f720b1f122ffc7986cc467ef1a7607000c6b491 Mon Sep 17 00:00:00 2001 From: inmarket Date: Thu, 25 Sep 2014 17:43:05 +1000 Subject: [PATCH] C decls on GDISP functions --- src/gdisp/driver.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/gdisp/driver.h b/src/gdisp/driver.h index f8d66f4b..98bf64fc 100644 --- a/src/gdisp/driver.h +++ b/src/gdisp/driver.h @@ -617,9 +617,15 @@ typedef struct GDISPVMT { #endif // Routines needed by the general driver VMT - bool_t _gdispInitDriver(GDriver *g, unsigned driverinstance, unsigned systeminstance); - void _gdispPostInitDriver(GDriver *g); - void _gdispDeInitDriver(GDriver *g); + #ifdef __cplusplus + extern "C" { + #endif + bool_t _gdispInitDriver(GDriver *g, unsigned driverinstance, unsigned systeminstance); + void _gdispPostInitDriver(GDriver *g); + void _gdispDeInitDriver(GDriver *g); + #ifdef __cplusplus + } + #endif // Build the VMT const GDISPVMT const GDISP_DRIVER_VMT[1] = {{