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 /src/gdisp/gdisp_image_png.c | |
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 'src/gdisp/gdisp_image_png.c')
-rw-r--r-- | src/gdisp/gdisp_image_png.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gdisp/gdisp_image_png.c b/src/gdisp/gdisp_image_png.c index f7389a29..822c7002 100644 --- a/src/gdisp/gdisp_image_png.c +++ b/src/gdisp/gdisp_image_png.c @@ -267,7 +267,11 @@ static void PNG_oColor(PNG_output *o, color_t c) { #if (GDISP_IMAGE_PNG_Z_BUFFER_SIZE & ~(GDISP_IMAGE_PNG_Z_BUFFER_SIZE-1)) == GDISP_IMAGE_PNG_Z_BUFFER_SIZE #define WRAP_ZBUF(x) { x &= GDISP_IMAGE_PNG_Z_BUFFER_SIZE-1; } #else - #warning "PNG: GDISP_IMAGE_PNG_Z_BUFFER_SIZE is more efficient as a power of 2" + #if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT + #warning "PNG: GDISP_IMAGE_PNG_Z_BUFFER_SIZE is more efficient as a power of 2" + #elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO + COMPILER_WARNING("PNG: GDISP_IMAGE_PNG_Z_BUFFER_SIZE is more efficient as a power of 2") + #endif #define WRAP_ZBUF(x) { if (x >= GDISP_IMAGE_PNG_Z_BUFFER_SIZE) x = 0; } #endif |