added obsolete #warning to gdispInit()

ugfx_release_2.6
Joel Bodenmann 2013-05-30 16:58:33 +02:00
parent 427cfaa052
commit c4f39fcdde
2 changed files with 9 additions and 2 deletions

View File

@ -199,8 +199,8 @@ extern "C" {
*/ */
void gfxInit(void); void gfxInit(void);
/* Compatibility for old programs */ /* compatibility for old programs - throws a #warning */
#define gdispInit() gfxInit() void gdispInit(void);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -105,3 +105,10 @@ void gfxInit(void) {
_gaudoutInit(); _gaudoutInit();
#endif #endif
} }
void gdispInit(void) {
#warning "gdispInit() is obsolete - please use gfxInit() instead"
gfxInit();
}