lvandeve / lodepng

PNG encoder and decoder in C and C++.
zlib License
2.04k stars 420 forks source link

do not define LODEPNG_RESTRICT Open Watcom in C++ mode. #119

Closed sezero closed 4 years ago

sezero commented 4 years ago

see https://github.com/open-watcom/open-watcom-v2/issues/551

lvandeve commented 4 years ago

Thanks!

lvandeve commented 4 years ago

Does Watcom not support restrict in C++ mode by the way? That may slightly hurt performance of lodepng_memcpy (since with restrict added, a compiler can turn the for loop directly into a memcpy call). I know restrict isn't part of the C++ standard (only C), but most compilers have a way to support it anyway (maybe some alternative keyword?)

sezero commented 4 years ago

Does Watcom not support restrict in C++ mode by the way?

Unfortunately not, not at the moment. (See the link above.)