This type of errors occurs when you miss syntax (not putting a semicolon, putting it in the wrong place etc). So when you get this error, look for it just BEFORE the error statement, in your case before 'void'.
At first I thought about reg51.h file, but then I saw the line among the defines:
Code C - [expand]
1
bit status=0
As it's a variable definition, regular c-code, it must ends with a semicolon.
Although C allows placing #define anywhere in the code, it's a good practise to place them in the beginning, and surely not mix them with c-code. It is more readable.
And make lcd_delay with capitalized letters, again, it's more readable.