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);
/* Compatibility for old programs */
#define gdispInit() gfxInit()
/* compatibility for old programs - throws a #warning */
void gdispInit(void);
#ifdef __cplusplus
}

View File

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