diff options
author | inmarket <inmarket@ugfx.io> | 2017-06-30 19:43:51 +1000 |
---|---|---|
committer | inmarket <inmarket@ugfx.io> | 2017-06-30 19:43:51 +1000 |
commit | 9b7318710025ae85af714bb0b5f390db84ae2cd0 (patch) | |
tree | f7b1849a40c0019d048761f9493f6d15695703cd /drivers/gdisp/SPFD54124B | |
parent | e5497f2ac058acb427b6fcdd15db6adeddd7bc55 (diff) | |
download | uGFX-9b7318710025ae85af714bb0b5f390db84ae2cd0.tar.gz uGFX-9b7318710025ae85af714bb0b5f390db84ae2cd0.tar.bz2 uGFX-9b7318710025ae85af714bb0b5f390db84ae2cd0.zip |
Add compatibility with Visual Studio and make compile warning capabilities more cross platform
Diffstat (limited to 'drivers/gdisp/SPFD54124B')
-rw-r--r-- | drivers/gdisp/SPFD54124B/gdisp_lld_SPFD54124B.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/gdisp/SPFD54124B/gdisp_lld_SPFD54124B.c b/drivers/gdisp/SPFD54124B/gdisp_lld_SPFD54124B.c index 163be520..6a3457d9 100644 --- a/drivers/gdisp/SPFD54124B/gdisp_lld_SPFD54124B.c +++ b/drivers/gdisp/SPFD54124B/gdisp_lld_SPFD54124B.c @@ -15,13 +15,14 @@ #if GFX_USE_GDISP -#if defined(GDISP_SCREEN_HEIGHT) -#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored." -#undef GDISP_SCREEN_HEIGHT -#endif -#if defined(GDISP_SCREEN_WIDTH) -#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored." -#undef GDISP_SCREEN_WIDTH +#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT) + #if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT + #warning "GDISP: This low level driver does not support setting a screen size. It is being ignored." + #elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO + COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.") + #endif + #undef GDISP_SCREEN_WIDTH + #undef GDISP_SCREEN_HEIGHT #endif #include "gdisp_lld_config.h" |