glsl/apps: Include missing header, properly escape format strings.

This commit is contained in:
Michal Krol 2009-09-24 10:55:37 +02:00
parent db097a9a3f
commit e8e3fe15e1
4 changed files with 8 additions and 4 deletions

View file

@ -27,6 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "../pp/sl_pp_public.h"
@ -235,11 +236,11 @@ main(int argc,
break;
case SL_PP_MODASSIGN:
fprintf(out, "%= ");
fprintf(out, "%%= ");
break;
case SL_PP_MODULO:
fprintf(out, "% ");
fprintf(out, "%% ");
break;
case SL_PP_LSHIFTASSIGN:

View file

@ -27,6 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../pp/sl_pp_public.h"

View file

@ -27,6 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "../pp/sl_pp_public.h"
@ -219,11 +220,11 @@ main(int argc,
break;
case SL_PP_MODASSIGN:
fprintf(out, "%= ");
fprintf(out, "%%= ");
break;
case SL_PP_MODULO:
fprintf(out, "% ");
fprintf(out, "%% ");
break;
case SL_PP_LSHIFTASSIGN:

View file

@ -27,6 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "../pp/sl_pp_public.h"