From 962433eda243a016914f9dd3d106ce34be6f404e Mon Sep 17 00:00:00 2001 From: diego Date: Sun, 27 Jan 2008 18:42:00 +0000 Subject: Add multiple inclusion guards to generated header file. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25893 b3059339-0415-0410-9bf9-f77b7e298cf2 --- TOOLS/alaw-gen.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'TOOLS') 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; } -- cgit v1.2.3