aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-27 18:42:00 +0000
committerGravatar diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-27 18:42:00 +0000
commit962433eda243a016914f9dd3d106ce34be6f404e (patch)
tree77684fcbcbcf4a2d4b8f56a8cb41e180889ee98b
parent2697136bbb050d705e78846ee0da7d9574d222ed (diff)
Add multiple inclusion guards to generated header file.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25893 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--TOOLS/alaw-gen.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/TOOLS/alaw-gen.c b/TOOLS/alaw-gen.c
index 4e72822a0f..77a8fe9778 100644
--- a/TOOLS/alaw-gen.c
+++ b/TOOLS/alaw-gen.c
@@ -13,7 +13,10 @@ fclose(f);
system("sox -t raw -A -r 8000 -b alaw.dat -t sw alaw.out");
-printf("// Generated by TOOLS/alaw-gen.c\n");
+printf("// Generated by TOOLS/alaw-gen.c\n\n");
+
+printf("#ifndef ALAW_H\n");
+printf("#define ALAW_H\n");
printf("\nconst short alaw2short[]={\n");
@@ -41,7 +44,9 @@ for(i=0;i<256;i++){
if((i&7)==7) printf("\n");
}
fclose(f);
-printf("};\n");
+printf("};\n\n");
+
+printf("#endif /* ALAW_H */\n");
return 0;
}