diff --git a/examples/vwebp.c b/examples/vwebp.c index 6bcdcf7f..0fddf725 100644 --- a/examples/vwebp.c +++ b/examples/vwebp.c @@ -14,6 +14,10 @@ #include "webp/config.h" #endif +#if defined(__unix__) || defined(__CYGWIN__) +#define _POSIX_C_SOURCE 200112L // for setenv +#endif + #include #include #include