This is where include files come into their own.
If you put the definition of the temp-table into an include file, then you only have to change the definition in one place, stopping those annoying times where you have changed 99 out of the 100 occurences, and you can be sure that the definition is correct in all your programs.
You still have to recompile all the programs if you change the include file, but you'd have to do that anyway.