diff options
-rw-r--r-- | include/gfx.h | 4 | ||||
-rw-r--r-- | src/gfx.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/include/gfx.h b/include/gfx.h index ac9a5382..b2c84daf 100644 --- a/include/gfx.h +++ b/include/gfx.h @@ -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 } @@ -105,3 +105,10 @@ void gfxInit(void) { _gaudoutInit(); #endif } + +void gdispInit(void) { + #warning "gdispInit() is obsolete - please use gfxInit() instead" + + gfxInit(); +} + |