Merge "add proper WEBP_HAVE_GIF and WEBP_HAVE_GL flags"

This commit is contained in:
Pascal Massimino
2013-09-14 01:57:36 -07:00
committed by Gerrit Code Review
4 changed files with 34 additions and 3 deletions

View File

@ -18,6 +18,8 @@
#include <stdlib.h>
#include <string.h>
#if defined(WEBP_HAVE_GL)
#if defined(HAVE_GLUT_GLUT_H)
#include <GLUT/glut.h>
#else
@ -514,4 +516,14 @@ int main(int argc, char *argv[]) {
return -1;
}
#else // !WEBP_HAVE_GL
int main(int argc, const char *argv[]) {
fprintf(stderr, "OpenGL support not enabled in %s.\n", argv[0]);
(void)argc;
return 0;
}
#endif
//------------------------------------------------------------------------------